Corrected the mouse release event handler of the editor to call the super class one first.

Fri, 26 Jun 2015 18:34:11 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 26 Jun 2015 18:34:11 +0200
changeset 4297
8ece10107224
parent 4295
3ec4679c3dcd
child 4298
4e7a0e2c20fc

Corrected the mouse release event handler of the editor to call the super class one first.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Thu Jun 25 19:09:11 2015 +0200
+++ b/QScintilla/Editor.py	Fri Jun 26 18:34:11 2015 +0200
@@ -7584,14 +7584,14 @@
         button = evt.button()
         key = (int(modifiers), int(button))
         
+        self.vm.eventFilter(self, evt)
+        super(Editor, self).mouseReleaseEvent(evt)
+        
         if button != Qt.NoButton and \
             Preferences.getEditor("MouseClickHandlersEnabled") and \
                 key in self.__mouseClickHandlers:
+            evt.accept()
             self.__mouseClickHandlers[key][1]()
-            evt.accept()
-        else:
-            self.vm.eventFilter(self, evt)
-            super(Editor, self).mouseReleaseEvent(evt)
     
     def setMouseClickHandler(self, name, modifiers, button, function):
         """

eric ide

mercurial