From a97307ba6e625468a1d8ad1049e6d9db0ad42d4d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 21 Jun 2017 21:32:35 +0800 Subject: Fixed FTBFS on Windows. Fixed the default output device option. Seeking now restores CC values correctly. --- qmidiplayer-desktop/qmpchannelswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp') 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()); -- cgit v1.2.3