diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-11 00:01:50 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-18 08:20:08 -0500 |
| commit | 7e8018481284ff9ac1915425e9ed94d532ab33db (patch) | |
| tree | 7fc710d0b769b8454436cb822a6f9c64eddf0c32 /src/organizercore.cpp | |
| parent | aa7a552654ba3b218b87397dedc9e5a66d2f6701 (diff) | |
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
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <QApplication> #include <QCoreApplication> @@ -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: |
