diff --git a/src/core/core.cpp b/src/core/core.cpp index a99da9ff8..733730250 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -863,10 +863,11 @@ QByteArray Core::loadToxSave(QString path) GUI::showWarning(tr("Profile already in use"), tr("Your profile is already used by another qTox\n" "Please select another profile")); - path = Settings::getInstance().askProfiles(); - if (path.isEmpty()) + QString tmppath = Settings::getInstance().askProfiles(); + if (tmppath.isEmpty()) continue; - Settings::getInstance().switchProfile(QFileInfo(path).baseName()); + Settings::getInstance().switchProfile(tmppath); + path = QDir(Settings::getSettingsDirPath()).filePath(tmppath + TOX_EXT); HistoryKeeper::resetInstance(); } @@ -875,7 +876,7 @@ QByteArray Core::loadToxSave(QString path) if (!configurationFile.exists()) { - qWarning() << "The Tox configuration file was not found"; + qWarning() << "The Tox configuration file "<