In restore list clear all files that do not exist.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-22 17:39:04 +02:00
parent 8c0f8997c6
commit 8b7602e223

View File

@ -3579,7 +3579,17 @@ QStringList MainWindow::GetUnlokedRestoreFileList() const
files.removeAll(restoreFiles.at(i)); files.removeAll(restoreFiles.at(i));
} }
qApp->ValentinaSettings()->SetRestoreFileList(files); // Clear all files that do not exist.
QStringList filtered;
for (int i = 0; i < files.size(); ++i)
{
if (QFileInfo(files.at(i)).exists())
{
filtered.append(files.at(i));
}
}
qApp->ValentinaSettings()->SetRestoreFileList(filtered);
} }
return restoreFiles; return restoreFiles;
#else #else