E5Gui/E5TabWidget.py

changeset 1694
648466a9451b
parent 1673
06eeffc8c97d
child 2075
6d3192a8a2d7
--- a/E5Gui/E5TabWidget.py	Sun Mar 04 18:20:13 2012 +0100
+++ b/E5Gui/E5TabWidget.py	Sat Mar 10 15:17:52 2012 +0100
@@ -241,7 +241,9 @@
             rect = _tabbar.tabRect(index)
             if rect.contains(point):
                 self.customTabContextMenuRequested.emit(_tabbar.mapToParent(point), index)
-                break
+                return
+        
+        self.customTabContextMenuRequested.emit(_tabbar.mapToParent(point), -1)
     
     def selectTab(self, pos):
         """

eric ide

mercurial