commit a397c027036099bea9b108034ea68e7322f323de
parent ef32b336d6023d88203476248f0de56f0c849858
Author: ThomasV <thomasv@gitorious>
Date: Sun, 10 Jun 2012 20:36:30 +0200
fix menu popping up outside window
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/gui_qt.py b/lib/gui_qt.py
@@ -92,7 +92,7 @@ class MyTreeWidget(QTreeWidget):
QTreeWidget.__init__(self, parent)
def ddfr(item):
if not item: return
- for i in range(0,100):
+ for i in range(0,self.viewport().height()/5):
if self.itemAt(QPoint(0,i*5)) == item:
break
else: