mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 00:44:34 +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"):
|
if sttgns.contains("recentFiles"):
|
||||||
lst = sttgns.value("recentFiles")
|
lst = sttgns.value("recentFiles")
|
||||||
self.mw.menuRecents.clear()
|
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]
|
name = os.path.split(f)[1]
|
||||||
a = QAction(name, self)
|
a = QAction(name, self)
|
||||||
a.setData(f)
|
a.setData(f)
|
||||||
|
|
Loading…
Reference in a new issue