mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Consider empty encrypted history as nonexistent
This commit is contained in:
parent
ba0bc12ac2
commit
e5ddd9d0cf
|
@ -122,7 +122,7 @@ QByteArray Core::getSaltFromFile(QString filename)
|
|||
void Core::checkEncryptedHistory()
|
||||
{
|
||||
QString path = HistoryKeeper::getHistoryPath();
|
||||
bool exists = QFile::exists(path);
|
||||
bool exists = QFile::exists(path) && QFile(path).size()>0;
|
||||
|
||||
QByteArray salt = getSaltFromFile(path);
|
||||
if (exists && salt.size() == 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user