1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix loading an encrypted chat log failing

This commit is contained in:
Dubslow 2014-12-09 19:09:28 -06:00
parent a1a1a6f989
commit de6a443f37
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -1184,7 +1184,7 @@ bool Core::loadConfiguration(QString path)
{
loadPath = QDir(Settings::getSettingsDirPath()).filePath(profile + TOX_EXT);
Settings::getInstance().switchProfile(profile);
HistoryKeeper::getInstance()->resetInstance();
HistoryKeeper::resetInstance();
}
return false;
}
@ -1265,7 +1265,7 @@ void Core::switchConfiguration(const QString& profile)
loadPath = QDir(Settings::getSettingsDirPath()).filePath(profile + TOX_EXT);
Settings::getInstance().switchProfile(profile);
HistoryKeeper::getInstance()->resetInstance();
HistoryKeeper::resetInstance();
start();
Widget::getInstance()->setEnabledThreadsafe(true);