diff --git a/src/core/coreencryption.cpp b/src/core/coreencryption.cpp index 199c4ad17..3e0f4e7bb 100644 --- a/src/core/coreencryption.cpp +++ b/src/core/coreencryption.cpp @@ -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)