get rid of arguments error for the imagelist in update_ui, as imagelist is by ref

This commit is contained in:
Kilian Valkhof 2010-02-21 22:19:49 +01:00
parent 103e2f1b43
commit 0e79611047

View file

@ -155,10 +155,9 @@ class StartQT4(QMainWindow):
UI Functions UI Functions
""" """
def update_table(self, imagelist): def update_table(self):
"""Update the table view with the latest file data.""" """Update the table view with the latest file data."""
tview = self.ui.processedfiles tview = self.ui.processedfiles
self.imagelist = imagelist
# set table model # set table model
tmodel = TriTableModel(self, self.imagelist, tmodel = TriTableModel(self, self.imagelist,
["Filename", "Old Size", "New Size", "Compressed"]) ["Filename", "Old Size", "New Size", "Compressed"])
@ -321,7 +320,7 @@ class Worker(QThread):
self.imagelist.insert(i, (name, oldfilesizestr, self.imagelist.insert(i, (name, oldfilesizestr,
newfilesizestr, ratiostr, filename, icon)) newfilesizestr, ratiostr, filename, icon))
self.emit(SIGNAL("updateUi"), self.imagelist) self.emit(SIGNAL("updateUi"))
if not self.showapp and self.verbose: if not self.showapp and self.verbose:
# we work via the commandline # we work via the commandline