diff options
-rw-r--r-- | muse2/muse/arranger/tlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/muse2/muse/arranger/tlist.cpp b/muse2/muse/arranger/tlist.cpp index c9f924f4..3b219f71 100644 --- a/muse2/muse/arranger/tlist.cpp +++ b/muse2/muse/arranger/tlist.cpp @@ -390,7 +390,7 @@ void TList::paint(const QRect& r) } break; case COL_CLEF: - if (track->isMidiTrack()) { + if (track->isMidiTrack() && track->type() == Track::MIDI) { // no drum tracks! QString s = tr("no clef"); if (((MidiTrack*)track)->getClef() == trebleClef) s=tr("Treble"); @@ -1081,7 +1081,7 @@ void TList::mousePressEvent(QMouseEvent* ev) switch (col) { case COL_CLEF: - if (t->isMidiTrack()) { + if (t->isMidiTrack() && t->type() == Track::MIDI) { QMenu* p = new QMenu; p->addAction(tr("Treble clef"))->setData(0); p->addAction(tr("Bass clef"))->setData(1); |