From 0202c2b0bc1a7dadc21af7d0ff82affd655bfade Mon Sep 17 00:00:00 2001 From: terminator356 Date: Sat, 11 Jan 2014 01:22:42 -0500 Subject: Fix song not 'dirty' on most operations (close was not prompting to save) --- muse2/ChangeLog | 4 ++++ muse2/muse/undo.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/muse2/ChangeLog b/muse2/ChangeLog index c53b445b..df917e8c 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,3 +1,7 @@ +11.01.2014: + - Fix song not 'dirty' on most operations (close was not prompting to save). (Tim) + Added 'emit sigDirty()' at end of Song::executeOperationGroup3() and ::revertOperationGroup3() + if operations list not empty. 10.01.2014: - Instrument Editor now basically complete: Added Initialization Sequence editor. (Tim) Initialization sequence sysex's can be entered manually or chosen from pre-defined list diff --git a/muse2/muse/undo.cpp b/muse2/muse/undo.cpp index 197c1f2a..7e80cbce 100644 --- a/muse2/muse/undo.cpp +++ b/muse2/muse/undo.cpp @@ -1013,6 +1013,8 @@ void Song::revertOperationGroup3(Undo& operations) break; } } + if(!operations.empty()) + emit sigDirty(); } //--------------------------------------------------------- @@ -1143,6 +1145,8 @@ void Song::executeOperationGroup3(Undo& operations) break; } } + if(!operations.empty()) + emit sigDirty(); } -- cgit v1.2.1