Bug Fix: Double clicking a memo in the memo list opens the memo
This commit is contained in:
parent
20241b0779
commit
fad80398e8
1 changed files with 4 additions and 5 deletions
9
menus.py
9
menus.py
|
@ -1127,8 +1127,8 @@ class PesterMemoList(QtGui.QDialog):
|
||||||
self.channelarea.setColumnWidth(0,200)
|
self.channelarea.setColumnWidth(0,200)
|
||||||
self.channelarea.setColumnWidth(1,10)
|
self.channelarea.setColumnWidth(1,10)
|
||||||
self.connect(self.channelarea,
|
self.connect(self.channelarea,
|
||||||
QtCore.SIGNAL('itemActivated(QTreeWidgetItem *, int)'),
|
QtCore.SIGNAL('itemDoubleClicked(QTreeWidgetItem *, int)'),
|
||||||
self, QtCore.SLOT('joinActivatedMemo(QTreeWidgetItem, int)'))
|
self, QtCore.SLOT('joinActivatedMemo()'))
|
||||||
|
|
||||||
self.orjoinlabel = QtGui.QLabel("OR MAKE A NEW MEMO:")
|
self.orjoinlabel = QtGui.QLabel("OR MAKE A NEW MEMO:")
|
||||||
self.newmemo = QtGui.QLineEdit(channel, self)
|
self.newmemo = QtGui.QLineEdit(channel, self)
|
||||||
|
@ -1197,9 +1197,8 @@ class PesterMemoList(QtGui.QDialog):
|
||||||
selectedmemo = self.selectedmemo()
|
selectedmemo = self.selectedmemo()
|
||||||
if newmemo or selectedmemo:
|
if newmemo or selectedmemo:
|
||||||
self.accept()
|
self.accept()
|
||||||
@QtCore.pyqtSlot(QtGui.QTreeWidgetItem, int)
|
@QtCore.pyqtSlot()
|
||||||
def joinActivatedMemo(self, item, column):
|
def joinActivatedMemo(self):
|
||||||
self.channelarea.setCurrentItem(item, column)
|
|
||||||
self.accept()
|
self.accept()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue