SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py

branch
eric7
changeset 61
4cd8dfb2c924
parent 60
44349feb5af7
child 62
5d418352a1bc
diff -r 44349feb5af7 -r 4cd8dfb2c924 SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py
--- a/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py	Sat Dec 23 15:48:59 2023 +0100
+++ b/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py	Sat Dec 23 18:14:27 2023 +0100
@@ -217,6 +217,8 @@
         """
         Private slot to edit the selected entry.
         """
+        from .SelectionEncloserEditDialog import SelectionEncloserEditDialog
+
         itm = self.menuTree.selectedItems()[0]
         parent = itm.parent()
         if parent is None:
@@ -230,8 +232,6 @@
             if ok and menuTitle:
                 itm.setText(0, menuTitle)
         else:
-            from .SelectionEncloserEditDialog import SelectionEncloserEditDialog
-
             dlg = SelectionEncloserEditDialog(
                 itm.text(0), itm.data(0, Qt.ItemDataRole.UserRole), self
             )

eric ide

mercurial