eric6/Preferences/ShortcutsDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8218
7c09585bd960
child 8731
c6264a513aa4
--- a/eric6/Preferences/ShortcutsDialog.py	Fri Apr 02 11:59:41 2021 +0200
+++ b/eric6/Preferences/ShortcutsDialog.py	Sat May 01 14:27:20 2021 +0200
@@ -44,7 +44,7 @@
         @param parent parent widget of this dialog
         @type QWidget
         """
-        super(ShortcutsDialog, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
         self.setWindowFlags(Qt.WindowType.Window)
         
@@ -474,8 +474,8 @@
                     (self.actionButton.isChecked() and
                      rx.search(itm.text(0)) is not None) or
                     (self.shortcutButton.isChecked() and
-                     not txt.lower() in itm.text(1).lower() and
-                     not txt.lower() in itm.text(2).lower())
+                     txt.lower() not in itm.text(1).lower() and
+                     txt.lower() not in itm.text(2).lower())
                 ):
                     itm.setHidden(True)
                     childHiddenCount += 1

eric ide

mercurial