Fixed a situation in the config dialog that could cause an issue, if a plug-in gets uninstalled after its config page was the last one been shown.

Sat, 28 Feb 2015 18:34:55 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Feb 2015 18:34:55 +0100
changeset 4143
565002034bdb
parent 4142
7e138a214147
child 4145
0cbff03680bb

Fixed a situation in the config dialog that could cause an issue, if a plug-in gets uninstalled after its config page was the last one been shown.

Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationDialog.py	Sat Feb 28 16:16:49 2015 +0100
+++ b/Preferences/ConfigurationDialog.py	Sat Feb 28 18:34:55 2015 +0100
@@ -612,7 +612,7 @@
         @param pageName name of the configuration page to show (string)
         @param setCurrent flag indicating to set the current item (boolean)
         """
-        if pageName == "empty":
+        if pageName == "empty" or pageName not in self.configItems:
             page = self.emptyPage
         else:
             pageData = self.configItems[pageName]

eric ide

mercurial