Corrected some slots that used the non-existent 'activated(str)' signal. eric7

Thu, 26 Dec 2024 14:22:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 26 Dec 2024 14:22:24 +0100
branch
eric7
changeset 199
5dfb03b8ee4c
parent 198
dd36f90e77ee
child 200
d0180bd6c1b5

Corrected some slots that used the non-existent 'activated(str)' signal.

ProjectDjango/DjangoMigrationSelectionDialog.py file | annotate | diff | comparison | revisions
ProjectDjango/DjangoSquashMigrationSelectionDialog.py file | annotate | diff | comparison | revisions
--- a/ProjectDjango/DjangoMigrationSelectionDialog.py	Thu Dec 26 14:19:48 2024 +0100
+++ b/ProjectDjango/DjangoMigrationSelectionDialog.py	Thu Dec 26 14:22:24 2024 +0100
@@ -48,13 +48,15 @@
 
         self.__migrations = migrations
         self.applicationComboBox.addItems(sorted(self.__migrations.keys()))
-        self.on_applicationComboBox_activated(self.applicationComboBox.currentText())
+        self.on_applicationComboBox_currentTextChanged(
+            self.applicationComboBox.currentText()
+        )
 
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
 
     @pyqtSlot(str)
-    def on_applicationComboBox_activated(self, app):
+    def on_applicationComboBox_currentTextChanged(self, app):
         """
         Private slot to update the migrations combo box.
 
--- a/ProjectDjango/DjangoSquashMigrationSelectionDialog.py	Thu Dec 26 14:19:48 2024 +0100
+++ b/ProjectDjango/DjangoSquashMigrationSelectionDialog.py	Thu Dec 26 14:22:24 2024 +0100
@@ -49,7 +49,7 @@
 
         self.__migrations = migrations
         self.applicationComboBox.addItems([""] + sorted(self.__migrations.keys()))
-        self.on_applicationComboBox_activated("")
+        self.on_applicationComboBox_currentTextChanged("")
 
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
@@ -64,7 +64,7 @@
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
 
     @pyqtSlot(str)
-    def on_applicationComboBox_activated(self, app):
+    def on_applicationComboBox_currentTextChanged(self, app):
         """
         Private slot to update the migrations combo boxes.
 
@@ -84,7 +84,7 @@
         self.__updateOkButton()
 
     @pyqtSlot(str)
-    def on_endMigrationComboBox_activated(self, migration):  # noqa: U100
+    def on_endMigrationComboBox_currentTextChanged(self, migration):  # noqa: U100
         """
         Private slot handling the selection of a migration.
 

eric ide

mercurial