E5MapWidget: fixed an issue that causes a crash when eric is used with Python2.

Tue, 29 May 2018 09:41:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 29 May 2018 09:41:52 +0200
changeset 6308
f49ce4c244b1
parent 6307
e087399669e0
child 6309
acaae2a2f1cb

E5MapWidget: fixed an issue that causes a crash when eric is used with Python2.

E5Gui/E5MapWidget.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5MapWidget.py	Mon May 28 14:16:09 2018 +0200
+++ b/E5Gui/E5MapWidget.py	Tue May 29 09:41:52 2018 +0200
@@ -76,8 +76,8 @@
         """
         self._master = master
         self._master.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
-        self._master.verticalScrollBar().valueChanged.connect(self.repaint)
-        self._master.verticalScrollBar().rangeChanged.connect(self.repaint)
+        self._master.verticalScrollBar().valueChanged.connect(self.update)
+        self._master.verticalScrollBar().rangeChanged.connect(self.update)
         self.__updateMasterViewportWidth()
     
     def setWidth(self, width):

eric ide

mercurial