mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
get rid of arguments error for the imagelist in update_ui, as imagelist is by ref
This commit is contained in:
parent
103e2f1b43
commit
0e79611047
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue