From 0e79611047a202023c12b62676cd2e9b30315095 Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Sun, 21 Feb 2010 22:19:49 +0100 Subject: [PATCH] get rid of arguments error for the imagelist in update_ui, as imagelist is by ref --- trimage.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trimage.py b/trimage.py index d3d9eb0..fc9ec56 100644 --- a/trimage.py +++ b/trimage.py @@ -155,10 +155,9 @@ class StartQT4(QMainWindow): UI Functions """ - def update_table(self, imagelist): + def update_table(self): """Update the table view with the latest file data.""" tview = self.ui.processedfiles - self.imagelist = imagelist # set table model tmodel = TriTableModel(self, self.imagelist, ["Filename", "Old Size", "New Size", "Compressed"]) @@ -321,7 +320,7 @@ class Worker(QThread): self.imagelist.insert(i, (name, oldfilesizestr, newfilesizestr, ratiostr, filename, icon)) - self.emit(SIGNAL("updateUi"), self.imagelist) + self.emit(SIGNAL("updateUi")) if not self.showapp and self.verbose: # we work via the commandline