From f850b4ef0effae9e142ba3c694776bbfcc9238fb Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Wed, 30 Mar 2016 11:43:32 +0200 Subject: [PATCH] Corrects bug: does not append non-exising files to recent files --- manuskript/ui/welcome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuskript/ui/welcome.py b/manuskript/ui/welcome.py index 1dbc0ff8..464a33ee 100644 --- a/manuskript/ui/welcome.py +++ b/manuskript/ui/welcome.py @@ -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)