mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix transform dialog not being closable
If the user clicked away from the source, while the transform dialog is open, the whole dialog would be disabled. The user then couldn't click close or press escape to close the dialog. The only way for them to close it was to click on another source to re-enable it.
This commit is contained in:
parent
7a30d535aa
commit
1b68944107
File diff suppressed because it is too large
Load Diff
@ -144,7 +144,9 @@ void OBSBasicTransform::SetItemQt(OBSSceneItem newItem)
|
||||
if (item)
|
||||
RefreshControls();
|
||||
|
||||
setEnabled(!!item);
|
||||
bool enable = !!item;
|
||||
ui->container->setEnabled(enable);
|
||||
ui->buttonBox->button(QDialogButtonBox::Reset)->setEnabled(enable);
|
||||
}
|
||||
|
||||
void OBSBasicTransform::OBSChannelChanged(void *param, calldata_t *data)
|
||||
|
Loading…
Reference in New Issue
Block a user