Close context menu if another mode was entered.

Fixes #735.
This commit is contained in:
Florian Bruhin 2015-06-05 11:15:22 +02:00
parent 7102459c81
commit 728f06e797

View File

@ -620,6 +620,7 @@ class WebView(QWebView):
"""Save a reference to the context menu so we can close it."""
menu = self.page().createStandardContextMenu()
self.shutting_down.connect(menu.close)
modeman.instance(self.win_id).entered.connect(menu.close)
menu.exec_(e.globalPos())
def wheelEvent(self, e):