summaryrefslogtreecommitdiff
path: root/muse2/muse/instruments
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-16 12:16:44 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-16 12:16:44 +0000
commit2cf9d99932d8f45d5508c45729bea7af4e6ec8fd (patch)
treeea423f965efa83e841e267778f537af8de28a953 /muse2/muse/instruments
parent4e1ca61b03bab50d5e71e6da433503ac3b4470c0 (diff)
parent38988a37365c8772da11f3f41d49e5c1fd083084 (diff)
set focus policy to strong in all editors
merged with trunk
Diffstat (limited to 'muse2/muse/instruments')
-rw-r--r--muse2/muse/instruments/minstrument.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/instruments/minstrument.cpp b/muse2/muse/instruments/minstrument.cpp
index 9e52498f..4fde7bf3 100644
--- a/muse2/muse/instruments/minstrument.cpp
+++ b/muse2/muse/instruments/minstrument.cpp
@@ -891,7 +891,13 @@ void MidiInstrument::populatePatchPopup(QMenu* menu, int chan, MType songType, b
case MT_GS: mask = 2; break;
case MT_GM:
if(drumchan)
+ {
+ int id = (0xff << 16) + (0xff << 8) + 0x00; // First patch
+ QAction* act = menu->addAction(gmdrumname);
+ //act->setCheckable(true);
+ act->setData(id);
return;
+ }
mask = 1;
break;
case MT_UNKNOWN: mask = 7; break;