@ -1263,7 +1263,8 @@ void Core::switchConfiguration(const QString& profile)
loadPath = QDir(Settings::getSettingsDirPath()).filePath(profile + TOX_EXT);
Settings::getInstance().setCurrentProfile(profile);
HistoryKeeper::getInstance()->resetInstance();
clearPassword();
start();
}
@ -67,7 +67,7 @@ bool HistoryKeeper::checkPassword()
{
if (Settings::getInstance().getEncryptLogs())
QString dbpath = QDir(Settings::getInstance().getSettingsDirPath()).filePath("qtox_history.encrypted");
QString dbpath = getHistoryPath();
return EncryptedDb::check(dbpath);
} else {
return true;