summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2012-10-01 19:32:22 +0000
committerRobert Jonsson <spamatica@gmail.com>2012-10-01 19:32:22 +0000
commit179e91299cb95ad6b24d2f2c9b59b1c0874f4238 (patch)
treeffdc067791b59ff0ae19ea2a3c38e6df72031869 /muse2/muse
parente1a3d5b87883b5faadbd43326326d4c5aadc871d (diff)
drum editor fixes
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/midiedit/drumedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/muse2/muse/midiedit/drumedit.cpp b/muse2/muse/midiedit/drumedit.cpp
index dc403d33..4d7fa906 100644
--- a/muse2/muse/midiedit/drumedit.cpp
+++ b/muse2/muse/midiedit/drumedit.cpp
@@ -438,7 +438,7 @@ DrumEdit::DrumEdit(MusECore::PartList* pl, QWidget* parent, const char* name, un
stepLenWidget->addItem("16");
stepLenWidget->setCurrentIndex(0);
stepLenWidget->setFocusPolicy(Qt::TabFocus);
- connect(stepLenWidget, SIGNAL(activated(QString)), SLOT(setStep(QString)));
+ connect(stepLenWidget, SIGNAL(currentIndexChanged(QString)), SLOT(setStep(QString)));
cursorToolbar->addWidget(stepLenWidget);
addToolBarBreak();
@@ -1366,12 +1366,14 @@ void DrumEdit::keyPressEvent(QKeyEvent* event)
dlist->setCurDrumInstrument(dlist->getSelectedInstrument()-1);
dlist->redraw();
((DrumCanvas*)canvas)->selectCursorEvent(((DrumCanvas*)canvas)->getEventAtCursorPos());
+ MusEGlobal::song->update(SC_DRUMMAP);
return;
}
else if (key == shortcuts[SHRT_INSTRUMENT_STEP_DOWN].key) {
dlist->setCurDrumInstrument(dlist->getSelectedInstrument()+1);
dlist->redraw();
((DrumCanvas*)canvas)->selectCursorEvent(((DrumCanvas*)canvas)->getEventAtCursorPos());
+ MusEGlobal::song->update(SC_DRUMMAP);
return;
}