mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 03:12:27 +12:00
Corrects bug: does not append non-exising files to recent files
This commit is contained in:
parent
47d87115e6
commit
f850b4ef0e
|
@ -89,7 +89,7 @@ class welcome(QWidget, Ui_welcome):
|
|||
if sttgns.contains("recentFiles"):
|
||||
lst = sttgns.value("recentFiles")
|
||||
self.mw.menuRecents.clear()
|
||||
for f in lst:
|
||||
for f in [f for f in lst if os.path.exists(f)]:
|
||||
name = os.path.split(f)[1]
|
||||
a = QAction(name, self)
|
||||
a.setData(f)
|
||||
|
|
Loading…
Reference in a new issue