From 1a81cf46e5f13805e4d41799cd4992ef3bdb5994 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 23 Aug 2015 17:22:45 -0700 Subject: [PATCH] UI: Delete backup file if deleting scene collection I forgot to make sure that the backup file for a scene collection would also be deleted if a scene collection is purposely deleted by the user. --- obs/window-basic-main-scene-collections.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obs/window-basic-main-scene-collections.cpp b/obs/window-basic-main-scene-collections.cpp index 74e2dbbf7..1c3da0924 100644 --- a/obs/window-basic-main-scene-collections.cpp +++ b/obs/window-basic-main-scene-collections.cpp @@ -310,6 +310,8 @@ void OBSBasic::on_actionRemoveSceneCollection_triggered() oldFile.insert(0, path); oldFile += ".json"; os_unlink(oldFile.c_str()); + oldFile += ".bak"; + os_unlink(oldFile.c_str()); Load(newPath.c_str()); RefreshSceneCollections();