summaryrefslogtreecommitdiff
path: root/muse2/muse/song.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-09-17 22:29:46 +0000
committerTim E. Real <termtech@rogers.com>2012-09-17 22:29:46 +0000
commitedd3eb6d5b73b2868398bef6ae7fbb6fd92c5800 (patch)
treee2da58edd541ce359fa513a9332d7a37965efef5 /muse2/muse/song.cpp
parentef0a06629a9d4652b3a91d85af768e7e5797fe2a (diff)
Info text on Undo/Redo buttons/menu text/tooltips ("Undo AddTrack" etc).
In cases of multiple items in one operation, the first is shown, with ", .." ("Undo AddTrack, ..").
Diffstat (limited to 'muse2/muse/song.cpp')
-rw-r--r--muse2/muse/song.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp
index 9781116f..026ec1a9 100644
--- a/muse2/muse/song.cpp
+++ b/muse2/muse/song.cpp
@@ -1778,6 +1778,7 @@ void Song::endMsgCmd()
redoList->clearDelete();
MusEGlobal::undoAction->setEnabled(true);
MusEGlobal::redoAction->setEnabled(false);
+ setUndoRedoText();
emit songChanged(updateFlags);
}
}
@@ -1795,6 +1796,7 @@ void Song::undo()
doUndo3();
MusEGlobal::redoAction->setEnabled(true);
MusEGlobal::undoAction->setEnabled(!undoList->empty());
+ setUndoRedoText();
if(updateFlags && (SC_TRACK_REMOVED | SC_TRACK_INSERTED))
MusEGlobal::audio->msgUpdateSoloStates();
@@ -1815,6 +1817,7 @@ void Song::redo()
doRedo3();
MusEGlobal::undoAction->setEnabled(true);
MusEGlobal::redoAction->setEnabled(!redoList->empty());
+ setUndoRedoText();
if(updateFlags && (SC_TRACK_REMOVED | SC_TRACK_INSERTED))
MusEGlobal::audio->msgUpdateSoloStates();
@@ -2102,6 +2105,7 @@ void Song::clear(bool signal, bool clear_all)
MusEGlobal::undoAction->setEnabled(false);
if(MusEGlobal::redoAction)
MusEGlobal::redoAction->setEnabled(false);
+ setUndoRedoText();
_markerList->clear();
pos[0].setTick(0);