src/eric7/JediInterface/JediServer.py

branch
eric7-maintenance
changeset 11019
27cd57e98461
parent 10941
07cad049002c
parent 11006
a671918232f3
child 11118
967a88a16a21
--- a/src/eric7/JediInterface/JediServer.py	Thu Oct 03 17:06:51 2024 +0200
+++ b/src/eric7/JediInterface/JediServer.py	Thu Oct 31 10:54:33 2024 +0100
@@ -19,7 +19,7 @@
 from eric7.EricWidgets import EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.QScintilla.Editor import EditorIconId, ReferenceItem
-from eric7.SystemUtilities import PythonUtilities
+from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities
 
 from .RefactoringPreviewDialog import RefactoringPreviewDialog
 
@@ -679,7 +679,9 @@
         if "Error" not in result:
             euuid = result["Uuid"]
             diff = result["Diff"]
-            dlg = RefactoringPreviewDialog(self.tr("Rename Variable"), diff)
+            dlg = RefactoringPreviewDialog(
+                self.tr("Rename Variable"), diff, parent=self.__ui
+            )
             if dlg.exec() == QDialog.DialogCode.Accepted:
                 self.__applyRefactoring(euuid)
             else:
@@ -979,14 +981,17 @@
         """
         Private slot to handle the projectOpened signal.
         """
-        self.__ensureActive(JediServer.IdProject)
-        self.sendJson(
-            "openProject",
-            {
-                "ProjectPath": self.__ericProject.getProjectPath(),
-            },
-            idString=JediServer.IdProject,
-        )
+        if not FileSystemUtilities.isRemoteFileName(
+            self.__ericProject.getProjectFile()
+        ):
+            self.__ensureActive(JediServer.IdProject)
+            self.sendJson(
+                "openProject",
+                {
+                    "ProjectPath": self.__ericProject.getProjectPath(),
+                },
+                idString=JediServer.IdProject,
+            )
 
     @pyqtSlot()
     def __projectClosed(self):

eric ide

mercurial