forked from openlp/openlp
On start without configuration recentFiles might become a python list
This commit is contained in:
parent
69c6e0ef02
commit
f524c7ff45
@ -851,5 +851,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
if filename and filename not in self.recentFiles:
|
||||
self.recentFiles.insert(0, QtCore.QString(filename))
|
||||
while self.recentFiles.count() > recentFileCount:
|
||||
if isinstance(self.recentFiles, QtCore.QStringList):
|
||||
self.recentFiles.removeLast()
|
||||
else:
|
||||
self.recentFiles.pop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user