aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-09 20:26:54 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-09 20:26:54 -0500
commit382d85b15ce9cc4580a2522b39f5dd4ce43a24b0 (patch)
treebebf1807cb7221a24b64e04dfab6baeb535b8e14 /qmidiplayer-desktop/qmpmainwindow.cpp
parent095716fa21071a506605304db6a113f231ff0dcd (diff)
downloadQMidiPlayer-382d85b15ce9cc4580a2522b39f5dd4ce43a24b0.tar.xz
Don't use default playlist if started with files in args.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index a0a4539..cc498cb 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -223,6 +223,11 @@ int qmpMainWindow::parseArgs()
return 0;
}
+bool qmpMainWindow::startedWithFiles()
+{
+ return !argfiles.empty();
+}
+
void qmpMainWindow::closeEvent(QCloseEvent *event)
{
if (settings->getOptionBool("Behavior/DialogStatus"))