summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp5
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: