[pyqgis-console] just shows the context menu on tabs (does not on tabbar)

This commit is contained in:
Salvatore Larosa 2013-05-05 22:34:14 +02:00
parent eb47ff5d8a
commit 471dab184a

View File

@ -790,6 +790,7 @@ class EditorTabWidget(QTabWidget):
def contextMenuEvent(self, e):
tabBar = self.tabBar()
self.idx = tabBar.tabAt(e.pos())
if self.widget(self.idx):
cW = self.currentWidget()
menu = QMenu(self)
menu.addSeparator()