From b17acb9a708eb6f93d4deec70ce9b6d9657676be Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Tue, 13 Oct 2020 15:17:07 +0800 Subject: fix: windows build --- qmidiplayer-desktop/qmpmainwindow.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3