UI/UserInterface.py

changeset 5651
982465f8389c
parent 5624
cdd346d8858b
child 5654
d75dfc0d10f2
--- a/UI/UserInterface.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/UI/UserInterface.py	Wed Mar 22 18:50:20 2017 +0100
@@ -6106,7 +6106,7 @@
         self.__pluginInfoDialog.show()
         
     @pyqtSlot()
-    def __installPlugins(self, pluginFileNames=[]):
+    def __installPlugins(self, pluginFileNames=None):
         """
         Private slot to show a dialog to install a new plugin.
         
@@ -6114,7 +6114,10 @@
             installation list of strings
         """
         from PluginManager.PluginInstallDialog import PluginInstallDialog
-        dlg = PluginInstallDialog(self.pluginManager, pluginFileNames, self)
+        dlg = PluginInstallDialog(
+            self.pluginManager,
+            [] if pluginFileNames is None else pluginFileNames[:],
+            self)
         dlg.exec_()
         if dlg.restartNeeded():
             self.__restart()

eric ide

mercurial