eric6/QScintilla/ShellWindow.py

changeset 8150
fc1ae39af8c9
parent 8143
2c730d5fd177
child 8218
7c09585bd960
diff -r 3fefc0c430f2 -r fc1ae39af8c9 eric6/QScintilla/ShellWindow.py
--- a/eric6/QScintilla/ShellWindow.py	Thu Mar 04 17:43:11 2021 +0100
+++ b/eric6/QScintilla/ShellWindow.py	Thu Mar 04 17:44:41 2021 +0100
@@ -351,7 +351,11 @@
         ####################################################################
         
         self.esm = QSignalMapper(self)
-        self.esm.mapped[int].connect(self.__shell.editorCommand)
+        try:
+            self.esm.mappedInt.connect(self.__shell.editorCommand)
+        except AttributeError:
+            # pre Qt 5.15
+            self.esm.mapped[int].connect(self.__shell.editorCommand)
         
         self.editorActGrp = createActionGroup(self)
         

eric ide

mercurial