Fix recent merge

bzr-revno: 931
This commit is contained in:
Jon Tibble 2010-07-10 12:00:32 +01:00
commit 8f7c1bafb7

View File

@ -974,6 +974,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
if position != -1: if position != -1:
self.recentFiles.removeAt(position) self.recentFiles.removeAt(position)
self.recentFiles.insert(0, QtCore.QString(filename)) self.recentFiles.insert(0, QtCore.QString(filename))
while self.recentFiles.count() > recentFileCount: while self.recentFiles.count() > maxRecentFiles:
# Don't care what API says takeLast works, removeLast doesn't! # Don't care what API says takeLast works, removeLast doesn't!
self.recentFiles.takeLast() self.recentFiles.takeLast()