summaryrefslogtreecommitdiff
path: root/muse2/muse/song.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-10-06 11:37:57 +0000
committerFlorian Jung <flo@windfisch.org>2011-10-06 11:37:57 +0000
commitf60ddccd6d328a5cebc4d524246e33b399a8dfdd (patch)
treec96d609c0b1e2eb6cb74b700dbb960c8cab726fd /muse2/muse/song.cpp
parent421cb6dbce48a6c1044dd37e8f710b83db5d11a9 (diff)
you can now hide and show drumlist instruments
squashed some minor bugs
Diffstat (limited to 'muse2/muse/song.cpp')
-rw-r--r--muse2/muse/song.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp
index a994b0e6..db2bcad5 100644
--- a/muse2/muse/song.cpp
+++ b/muse2/muse/song.cpp
@@ -1468,11 +1468,13 @@ void Song::rewindStart()
// update
//---------------------------------------------------------
-void Song::update(int flags)
+void Song::update(int flags, bool allowRecursion)
{
static int level = 0; // DEBUG
- if (level) {
- printf("Song::update %08x, level %d\n", flags, level);
+ if (level && !allowRecursion) {
+ printf("THIS SHOULD NEVER HAPPEN: unallowed recursion in Song::update(%08x), level %d!\n"
+ " the songChanged() signal is NOT emitted. this will\n"
+ " probably cause windows being not up-to-date.\n", flags, level);
return;
}
++level;