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:
parent
a1a1a6f989
commit
de6a443f37
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user