From fad80398e803740ea6fb3a8b824e398f575943f1 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Wed, 1 Jun 2011 11:17:35 -0700 Subject: [PATCH] Bug Fix: Double clicking a memo in the memo list opens the memo --- menus.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/menus.py b/menus.py index cd56882..48223e3 100644 --- a/menus.py +++ b/menus.py @@ -1127,8 +1127,8 @@ class PesterMemoList(QtGui.QDialog): self.channelarea.setColumnWidth(0,200) self.channelarea.setColumnWidth(1,10) self.connect(self.channelarea, - QtCore.SIGNAL('itemActivated(QTreeWidgetItem *, int)'), - self, QtCore.SLOT('joinActivatedMemo(QTreeWidgetItem, int)')) + QtCore.SIGNAL('itemDoubleClicked(QTreeWidgetItem *, int)'), + self, QtCore.SLOT('joinActivatedMemo()')) self.orjoinlabel = QtGui.QLabel("OR MAKE A NEW MEMO:") self.newmemo = QtGui.QLineEdit(channel, self) @@ -1197,9 +1197,8 @@ class PesterMemoList(QtGui.QDialog): selectedmemo = self.selectedmemo() if newmemo or selectedmemo: self.accept() - @QtCore.pyqtSlot(QtGui.QTreeWidgetItem, int) - def joinActivatedMemo(self, item, column): - self.channelarea.setCurrentItem(item, column) + @QtCore.pyqtSlot() + def joinActivatedMemo(self): self.accept()