In restore list clear all files that do not exist.
--HG-- branch : develop
This commit is contained in:
parent
8c0f8997c6
commit
8b7602e223
|
@ -3579,7 +3579,17 @@ QStringList MainWindow::GetUnlokedRestoreFileList() const
|
|||
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;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user