Fix clearing leaked files with a passcode.

This commit is contained in:
John Preston 2018-09-01 10:45:55 +03:00
parent 47ce695142
commit 2096007ed9
1 changed files with 3 additions and 1 deletions

View File

@ -2722,7 +2722,9 @@ ReadMapState readMap(const QByteArray &pass) {
_mapChanged = true;
_writeMap(WriteMapWhen::Now);
}
clearLeakedFiles();
if (result != ReadMapPassNeeded) {
clearLeakedFiles();
}
return result;
}