Preferences/__init__.py

changeset 3917
dee1c6909268
parent 3845
949682ceda54
child 3918
7877c2ae7634
equal deleted inserted replaced
3914:642f8bfcd183 3917:dee1c6909268
1515 for b in profiles[name][6]: 1515 for b in profiles[name][6]:
1516 viewProfiles[name][2].append(QByteArray(b)) 1516 viewProfiles[name][2].append(QByteArray(b))
1517 else: 1517 else:
1518 # use the defaults 1518 # use the defaults
1519 viewProfiles = prefClass.uiDefaults["ViewProfiles2"] 1519 viewProfiles = prefClass.uiDefaults["ViewProfiles2"]
1520 # Remove unused setting in Python 2. Otherwise Eric 5.3 1520 # Remove unused setting
1521 # would get problems 1521 prefClass.settings.remove("UI/ViewProfiles")
1522 if sys.version_info[0] == 2:
1523 prefClass.settings.remove("UI/ViewProfiles")
1524 return viewProfiles 1522 return viewProfiles
1525 elif key in ["ToolbarManagerState", "PreviewSplitterState"]: 1523 elif key in ["ToolbarManagerState", "PreviewSplitterState"]:
1526 state = prefClass.settings.value("UI/" + key) 1524 state = prefClass.settings.value("UI/" + key)
1527 if state is not None: 1525 if state is not None:
1528 return state 1526 return state

eric ide

mercurial