Browse Source

UI: Move scene import dialog to the stack

Changed for consistency as almost every other dialog in the application
is stack-allocated.
Richard Stanway 3 years ago
parent
commit
377af35016
1 changed files with 2 additions and 4 deletions
  1. 2 4
      UI/window-basic-main-scene-collections.cpp

+ 2 - 4
UI/window-basic-main-scene-collections.cpp

@@ -367,10 +367,8 @@ void OBSBasic::on_actionRemoveSceneCollection_triggered()
 
 void OBSBasic::on_actionImportSceneCollection_triggered()
 {
-	OBSImporter *imp;
-	imp = new OBSImporter(this);
-	imp->exec();
-	delete imp;
+	OBSImporter imp(this);
+	imp.exec();
 
 	RefreshSceneCollections();
 }