1

Don't open recent files on startup that don't exist anymore

Former-commit-id: 89b6735e89907aedda9017b4d888a79daefe3915
This commit is contained in:
Alex Yatskov 2013-12-27 07:34:25 -08:00
parent 4194570cd4
commit e05d2c871b

View File

@ -65,7 +65,7 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
self.openFile(filename)
elif self.preferences['loadRecentFile']:
filenames = self.preferences.recentFiles()
if len(filenames) > 0:
if len(filenames) > 0 and os.path.isfile(filenames[0]):
self.openFile(filenames[0])
self.actionAbout.triggered.connect(self.onActionAbout)