completely fixed recently file menu

This commit is contained in:
Andreas Preikschat 2012-05-17 21:57:45 +02:00
parent 3fa5422d7d
commit c36475f27e

View File

@ -1358,7 +1358,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
existingRecentFiles = [recentFile for recentFile in self.recentFiles
if os.path.isfile(unicode(recentFile))]
recentFilesToDisplay = existingRecentFiles[0:recentFileCount]
self.clearRecentFileMenu()
self.recentFilesMenu.clear()
for fileId, filename in enumerate(recentFilesToDisplay):
log.debug('Recent file name: %s', filename)