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. 6_0_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Feb 2015 18:34:55 +0100
branch
6_0_x
changeset 4144
fb16b1759ba6
parent 4140
22040bea71a0
child 4147
8cb78e46cbee

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.
(grafted from 565002034bdbc9d04e8f44994ee68c1b4d5c25fe)

Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
diff -r 22040bea71a0 -r fb16b1759ba6 Preferences/ConfigurationDialog.py
--- a/Preferences/ConfigurationDialog.py	Sat Feb 28 15:59:54 2015 +0100
+++ b/Preferences/ConfigurationDialog.py	Sat Feb 28 18:34:55 2015 +0100
@@ -606,7 +606,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