sorting image files before adding to book

This commit is contained in:
Alex Yatskov 2011-08-28 13:03:28 -07:00
parent ac2d44c1ed
commit 198cccb11f

View File

@ -347,6 +347,8 @@ class MainWindowBook(QtGui.QMainWindow, Ui_MainWindowBook):
def addImageFiles(self, filenames): def addImageFiles(self, filenames):
filenames.sort()
filenamesListed = [] filenamesListed = []
for i in xrange(0, self.listWidgetFiles.count()): for i in xrange(0, self.listWidgetFiles.count()):
filenamesListed.append(self.listWidgetFiles.item(i).text()) filenamesListed.append(self.listWidgetFiles.item(i).text())