tfix: search for the lowest possible location - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 74b994dc03a162dec5b5dee0512117838c6f91f7 DIR parent 4b49b743dc81e84851c00632e665f2261572c8cf HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 10 Jun 2012 16:54:43 +0200 fix: search for the lowest possible location Diffstat: M lib/gui_qt.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -97,7 +97,12 @@ class MyTreeWidget(QTreeWidget): break else: return - self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, 15 + i*5)) + + for j in range(0,30): + if self.itemAt(QPoint(0,i*5 + j)) != item: + break + + self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, i*5 + j - 1)) self.connect(self, SIGNAL('itemActivated(QTreeWidgetItem*, int)'), ddfr) class StatusBarButton(QPushButton):