diff options
author | Florian Jung <flo@windfisch.org> | 2011-09-18 11:21:57 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-09-18 11:21:57 +0000 |
commit | ef3af1ec785c7fb89edc0347b5e75abeec0cde1d (patch) | |
tree | d7e0ea8444ba3b8ee7e9923aa8d5f2d44515516d /muse2/muse | |
parent | c3085938a1938a07d473807908771a40518df6a4 (diff) |
drum tracks don't have a clef select box any more
Diffstat (limited to 'muse2/muse')
-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); |