File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ void OBSBasic::RemoveScene(OBSSource source)
168168{
169169 obs_scene_t *scene = obs_scene_from_source (source);
170170
171+ bool foundItem = false ;
171172 QListWidgetItem *sel = nullptr ;
172173 int count = ui->scenes ->count ();
173174
@@ -177,6 +178,7 @@ void OBSBasic::RemoveScene(OBSSource source)
177178 if (cur_scene != scene)
178179 continue ;
179180
181+ foundItem = true ;
180182 sel = item;
181183 break ;
182184 }
@@ -195,7 +197,9 @@ void OBSBasic::RemoveScene(OBSSource source)
195197 OBSProjector::UpdateMultiviewProjectors ();
196198 }
197199
198- OnEvent (OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED);
200+ if (foundItem) {
201+ OnEvent (OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED);
202+ }
199203}
200204
201205static bool select_one (obs_scene_t * /* scene */ , obs_sceneitem_t *item, void *param)
You can’t perform that action at this time.
0 commit comments