remove useless tuple in tableWidgetInboxItemClicked, fixes #474

This commit is contained in:
Evgeny Tataurov 2013-09-04 14:41:19 +06:00
parent eff4edb8e8
commit 1eb7fc18d7

View File

@ -2718,9 +2718,8 @@ class MyForm(QtGui.QMainWindow):
inventoryHash = str(self.ui.tableWidgetInbox.item( inventoryHash = str(self.ui.tableWidgetInbox.item(
currentRow, 3).data(Qt.UserRole).toPyObject()) currentRow, 3).data(Qt.UserRole).toPyObject())
t = (inventoryHash,) self.ubuntuMessagingMenuClear(inventoryHash)
self.ubuntuMessagingMenuClear(t) sqlExecute('''update inbox set read=1 WHERE msgid=?''', inventoryHash)
sqlExecute('''update inbox set read=1 WHERE msgid=?''', *t)
def tableWidgetSentItemClicked(self): def tableWidgetSentItemClicked(self):
currentRow = self.ui.tableWidgetSent.currentRow() currentRow = self.ui.tableWidgetSent.currentRow()