From 0bb5a1df62064837a22c6211ecff658eef9c09f7 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 13 Apr 2016 20:13:20 -0700 Subject: [PATCH] UI: Discard backup file when renaming scene collection --- 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 710a16313..b3ec51553 100644 --- a/obs/window-basic-main-scene-collections.cpp +++ b/obs/window-basic-main-scene-collections.cpp @@ -255,6 +255,8 @@ void OBSBasic::on_actionRenameSceneCollection_triggered() oldFile.insert(0, path); oldFile += ".json"; os_unlink(oldFile.c_str()); + oldFile += ".bak"; + os_unlink(oldFile.c_str()); blog(LOG_INFO, "------------------------------------------------"); blog(LOG_INFO, "Renamed scene collection to '%s' (%s.json)",