Browse Source

Consider empty encrypted history as nonexistent

pull/1793/head
tux3 10 years ago
parent
commit
e5ddd9d0cf
  1. 2
      src/core/coreencryption.cpp

2
src/core/coreencryption.cpp

@ -122,7 +122,7 @@ QByteArray Core::getSaltFromFile(QString filename) @@ -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…
Cancel
Save