aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchannelswindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2017-06-21 21:32:35 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2017-06-21 21:32:35 +0800
commita97307ba6e625468a1d8ad1049e6d9db0ad42d4d (patch)
treeab5f9b74b3316f63ae3a7d1bbb2f0dcb6dd445d9 /qmidiplayer-desktop/qmpchannelswindow.cpp
parentfd3fc10798fb4c8d63f6f3e538018774741f2b15 (diff)
downloadQMidiPlayer-a97307ba6e625468a1d8ad1049e6d9db0ad42d4d.tar.xz
Fixed FTBFS on Windows.
Fixed the default output device option. Seeking now restores CC values correctly.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp
index 0626697..cdbb607 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.cpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.cpp
@@ -28,7 +28,7 @@ qmpChannelsWindow::qmpChannelsWindow(QWidget *parent) :
qmpSettingsWindow::getDefaultOutWidget()->addItem(devs[i].c_str());
if(!QString(devs[i].c_str()).compare(qmpSettingsWindow::getSettingsIntf()->
value("Midi/DefaultOutput","Internal FluidSynth").toString()))
- qmpSettingsWindow::getDefaultOutWidget()->setCurrentIndex(i+1);
+ qmpSettingsWindow::getDefaultOutWidget()->setCurrentIndex(i);
}
qmpSettingsWindow::getSettingsIntf()->setValue("Midi/DefaultOutput",
qmpSettingsWindow::getDefaultOutWidget()->currentText());