src/eric7/Debugger/EditBreakpointDialog.py

branch
eric7
changeset 10217
7888177e7463
parent 9653
e67609152c5e
child 10417
c6011e501282
--- a/src/eric7/Debugger/EditBreakpointDialog.py	Thu Sep 28 14:02:15 2023 +0200
+++ b/src/eric7/Debugger/EditBreakpointDialog.py	Wed Oct 04 17:50:59 2023 +0200
@@ -9,6 +9,7 @@
 
 import os.path
 
+from PyQt6.QtCore import Qt
 from PyQt6.QtWidgets import QComboBox, QDialog, QDialogButtonBox
 
 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
@@ -58,8 +59,6 @@
             QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon
         )
 
-        self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok)
-
         fn, lineno = breakPointId
 
         if not addMode:
@@ -117,7 +116,14 @@
             self.conditionCombo.setCurrentIndex(curr)
 
             if not fn:
-                self.okButton.setEnabled(False)
+                self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
+                    False
+                )
+
+        # set completer of condition combobox to be case sensitive
+        self.conditionCombo.completer().setCaseSensitivity(
+            Qt.CaseSensitivity.CaseSensitive
+        )
 
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
@@ -128,10 +134,7 @@
 
         @param fn text of the filename edit (string)
         """
-        if not fn:
-            self.okButton.setEnabled(False)
-        else:
-            self.okButton.setEnabled(True)
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(fn))
 
     def getData(self):
         """

eric ide

mercurial