1
0
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:
tux3 2015-06-04 18:51:57 +02:00
parent ba0bc12ac2
commit e5ddd9d0cf

View File

@ -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)