From ce2a8294b5aefe4497c88f24c817084868b8b1eb Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 28 Dec 2009 15:32:06 +0100 Subject: gui now stable --- module/gui/MainWindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/gui/MainWindow.py') diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py index 1e769110b..76f60a5bd 100644 --- a/module/gui/MainWindow.py +++ b/module/gui/MainWindow.py @@ -281,7 +281,11 @@ class MainWindow(QMainWindow): """ items = self.tabs["collector"]["package_view"].selectedItems() for item in items: - id = item.data(0, Qt.UserRole).toPyObject() + try: + id = item.getFileData()["id"] + id = item.parent().getPackData()["id"] + except: + id = item.getPackData()["id"] self.emit(SIGNAL("pushPackageToQueue"), id) def saveWindow(self): -- cgit v1.2.3