Made proper parent relationship of modal dialogs clearer. eric7

Sat, 26 Oct 2024 16:49:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Oct 2024 16:49:30 +0200
branch
eric7
changeset 153
4f4c2e272dcc
parent 152
0a4969f23c46
child 154
b66cfd856e93

Made proper parent relationship of modal dialogs clearer.

ChangeLog file | annotate | diff | comparison | revisions
MqttMonitor/MqttConnectionOptionsDialog.py file | annotate | diff | comparison | revisions
MqttMonitor/MqttConnectionProfilesDialog.py file | annotate | diff | comparison | revisions
MqttMonitor/MqttMonitorWidget.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sat Oct 19 16:04:39 2024 +0200
+++ b/ChangeLog	Sat Oct 26 16:49:30 2024 +0200
@@ -2,7 +2,7 @@
 ---------
 
 Version 11.0.2:
-- Fixed a backward compatibility issue with eric-ide < 24.11
+- Fixed a backward compatibility issue with eric-ide < 24.11.
 
 Version 11.0.1:
 - Fixed an issue causing an exception on computers with a small screen or when
--- a/MqttMonitor/MqttConnectionOptionsDialog.py	Sat Oct 19 16:04:39 2024 +0200
+++ b/MqttMonitor/MqttConnectionOptionsDialog.py	Sat Oct 26 16:49:30 2024 +0200
@@ -187,7 +187,7 @@
         from .MqttUserPropertiesEditor import MqttUserPropertiesEditorDialog
 
         dlg = MqttUserPropertiesEditorDialog(
-            self.tr("Last Will User Properties"), self.__willProperties, self
+            self.tr("Last Will User Properties"), self.__willProperties, parent=self
         )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             self.__willProperties = dlg.getProperties()
--- a/MqttMonitor/MqttConnectionProfilesDialog.py	Sat Oct 19 16:04:39 2024 +0200
+++ b/MqttMonitor/MqttConnectionProfilesDialog.py	Sat Oct 26 16:49:30 2024 +0200
@@ -762,7 +762,7 @@
         from .MqttUserPropertiesEditor import MqttUserPropertiesEditorDialog
 
         dlg = MqttUserPropertiesEditorDialog(
-            self.tr("Last Will User Properties"), self.__willProperties, self
+            self.tr("Last Will User Properties"), self.__willProperties, parent=self
         )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             self.__willProperties = dlg.getProperties()
--- a/MqttMonitor/MqttMonitorWidget.py	Sat Oct 19 16:04:39 2024 +0200
+++ b/MqttMonitor/MqttMonitorWidget.py	Sat Oct 26 16:49:30 2024 +0200
@@ -1539,7 +1539,9 @@
 
         preferencesKey = "{0}Properties".format(propertiesType.capitalize())
         properties = self.__plugin.getPreferences(preferencesKey)
-        dlg = MqttUserPropertiesEditorDialog(header, properties.get(key, []), self)
+        dlg = MqttUserPropertiesEditorDialog(
+            header, properties.get(key, []), parent=self
+        )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             properties[key] = dlg.getProperties()
             self.__plugin.setPreferences(preferencesKey, properties)

eric ide

mercurial