diff --git a/src/main.cpp b/src/main.cpp index 116ae2afe..073d116af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ #include #include +#include #include #include #include @@ -343,6 +344,10 @@ int main(int argc, char* argv[]) Profile* profile = nullptr; if (autoLogin && Profile::exists(profileName) && !Profile::isEncrypted(profileName)) { profile = Profile::loadProfile(profileName, QString(), settings); + if (!profile) { + QMessageBox::information(nullptr, QObject::tr("Error"), + QObject::tr("Failed to load profile automatically.")); + } } if (profile) { settings.updateProfileData(profile);