electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 74b994dc03a162dec5b5dee0512117838c6f91f7
parent 4b49b743dc81e84851c00632e665f2261572c8cf
Author: ThomasV <thomasv@gitorious>
Date:   Sun, 10 Jun 2012 16:54:43 +0200

fix: search for the lowest possible location

Diffstat:
Mlib/gui_qt.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -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):