From 7e8018481284ff9ac1915425e9ed94d532ab33db Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 11 Jan 2021 00:01:50 -0500 Subject: merged exe and run commands, added -e flag instead added dialog when selected profile doesn't exist, this can happen with -p on the command line --- src/organizercore.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/organizercore.cpp') diff --git a/src/organizercore.cpp b/src/organizercore.cpp index e95aa565..5d079f89 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -37,6 +37,7 @@ #include "shared/filesorigin.h" #include "shared/fileentry.h" #include "shared/util.h" +#include "shared/error_report.h" #include #include @@ -579,6 +580,10 @@ void OrganizerCore::setCurrentProfile(const QString &profileName) profileBaseDir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot).at(0)); log::error("picked profile '{}' instead", QDir(profileDir).dirName()); + + MOShared::criticalOnTop( + tr("The selected profile '%1' does not exist. The profile '%2' will be used instead") + .arg(profileName).arg(QDir(profileDir).dirName())); } // Keep the old profile to emit signal-changed: -- cgit v1.3.1