From 708b6a6f9ecd6c110b94f2b436b6a83f1d511ae8 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Fri, 26 Jul 2019 11:29:15 +0200 Subject: [PATCH] if mupp is starting without db/dat file list, open the file dialog automatically. --- src/musredit_qt5/mupp/PmuppGui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/musredit_qt5/mupp/PmuppGui.cpp b/src/musredit_qt5/mupp/PmuppGui.cpp index b2b9b11a..4e3475ce 100644 --- a/src/musredit_qt5/mupp/PmuppGui.cpp +++ b/src/musredit_qt5/mupp/PmuppGui.cpp @@ -369,6 +369,10 @@ PmuppGui::PmuppGui( QStringList fln, QWidget *parent, Qt::WindowFlags f ) fCentralWidget->setLayout(fBoxLayout_Main); setCentralWidget(fCentralWidget); + + // in case there is no db/dat file list given open the db/dat file open menu automatically. + if (fln.size() == 0) + fileOpen(); } //----------------------------------------------------------------------------------------------------