Fixed an issue in preferences importing the old ViewProfiles.

Sun, 09 Nov 2014 14:24:37 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Nov 2014 14:24:37 +0100
changeset 3917
dee1c6909268
parent 3914
642f8bfcd183
child 3918
7877c2ae7634

Fixed an issue in preferences importing the old ViewProfiles.
(grafted from c6aa0bccd7d8c68f14ef907641e69e48c0a355e9)

Preferences/__init__.py file | annotate | diff | comparison | revisions
--- a/Preferences/__init__.py	Sat Nov 08 20:18:02 2014 +0100
+++ b/Preferences/__init__.py	Sun Nov 09 14:24:37 2014 +0100
@@ -1517,10 +1517,8 @@
             else:
                 # use the defaults
                 viewProfiles = prefClass.uiDefaults["ViewProfiles2"]
-        # Remove unused setting in Python 2. Otherwise Eric 5.3
-        # would get problems
-        if sys.version_info[0] == 2:
-            prefClass.settings.remove("UI/ViewProfiles")
+        # Remove unused setting
+        prefClass.settings.remove("UI/ViewProfiles")
         return viewProfiles
     elif key in ["ToolbarManagerState", "PreviewSplitterState"]:
         state = prefClass.settings.value("UI/" + key)

eric ide

mercurial