diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-24 18:52:55 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-24 18:52:55 +0000 |
commit | dc67f442dbb0cd812b96bb4b62831799e8ee003f (patch) | |
tree | 8444999e91a63cb20787ce39bfc6d9ab98539aaa | |
parent | 2387d77ad58f25983c47d36264f228f4f8078a37 (diff) |
fixed "list edit breaks score edit" bug
-rw-r--r-- | muse2/muse/liste/listedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/muse2/muse/liste/listedit.cpp b/muse2/muse/liste/listedit.cpp index 5f73a3ba..61bd8ee4 100644 --- a/muse2/muse/liste/listedit.cpp +++ b/muse2/muse/liste/listedit.cpp @@ -242,13 +242,13 @@ void ListEdit::songChanged(int type) else { curPart = 0; curTrack = 0; + liste->blockSignals(true); liste->clear(); for (iPart p = parts()->begin(); p != parts()->end(); ++p) { MidiPart* part = (MidiPart*) (p->second); if (part->sn() == curPartId) curPart = part; EventList* el = part->events(); - liste->blockSignals(true); // p4.0.18 for (iEvent i = el->begin(); i != el->end(); ++i) { EventListItem* item = new EventListItem(liste, i->second, part); for (int col = 0; col < liste->columnCount(); ++col) @@ -260,8 +260,8 @@ void ListEdit::songChanged(int type) liste->scrollToItem(item, QAbstractItemView::EnsureVisible); } } - liste->blockSignals(false); } + liste->blockSignals(false); } if(!curPart) |