mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix bug where items can't be deleted in last scene
Bug introduced in jp9000/obs-studio#861
This commit is contained in:
parent
3774a73fe9
commit
6af48130e0
|
@ -2140,13 +2140,15 @@ void OBSBasic::DeactivateAudioSource(OBSSource source)
|
|||
|
||||
bool OBSBasic::QueryRemoveSource(obs_source_t *source)
|
||||
{
|
||||
int count = ui->scenes->count();
|
||||
if (obs_source_get_type(source) == OBS_SOURCE_TYPE_SCENE) {
|
||||
int count = ui->scenes->count();
|
||||
|
||||
if (count == 1) {
|
||||
QMessageBox::information(this,
|
||||
QTStr("FinalScene.Title"),
|
||||
QTStr("FinalScene.Text"));
|
||||
return false;
|
||||
if (count == 1) {
|
||||
QMessageBox::information(this,
|
||||
QTStr("FinalScene.Title"),
|
||||
QTStr("FinalScene.Text"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const char *name = obs_source_get_name(source);
|
||||
|
|
Loading…
Reference in a new issue