aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gary Wang <wzc782970009@gmail.com> 2020-10-13 15:17:07 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-10-14 23:43:58 +0800
commitb17acb9a708eb6f93d4deec70ce9b6d9657676be (patch)
tree30158db1f04bae3f930fae82b061f13af106101e
parent10051b3d8bbc707d48b7a8dded54563894469b64 (diff)
downloadQMidiPlayer-b17acb9a708eb6f93d4deec70ce9b6d9657676be.tar.xz
fix: windows build
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index 41c42c6..ac1d939 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -786,8 +786,8 @@ bool qmpMainWindow::isDarkTheme()
void qmpMainWindow::startRender()
{
#ifdef _WIN32
- char *ofstr = wcsto8bit((plistw->getSelectedItem() + QString(".wav")).toStdWString().c_str());
- char *ifstr = wcsto8bit(plistw->getSelectedItem().toStdWString().c_str());
+ char *ofstr = wcsto8bit((plistw->getCurrentItem() + QString(".wav")).toStdWString().c_str());
+ char *ifstr = wcsto8bit(plistw->getCurrentItem().toStdWString().c_str());
fluidrenderer = new qmpFileRendererFluid(ifstr, ofstr);
playerSetup(fluidrenderer);
fluidrenderer->renderInit();