Preferences/ConfigurationDialog.py

branch
6_0_x
changeset 4144
fb16b1759ba6
parent 4129
8d557a90b6e7
child 4168
ecb9c1a0e191
equal deleted inserted replaced
4140:22040bea71a0 4144:fb16b1759ba6
604 Public slot to show a named configuration page. 604 Public slot to show a named configuration page.
605 605
606 @param pageName name of the configuration page to show (string) 606 @param pageName name of the configuration page to show (string)
607 @param setCurrent flag indicating to set the current item (boolean) 607 @param setCurrent flag indicating to set the current item (boolean)
608 """ 608 """
609 if pageName == "empty": 609 if pageName == "empty" or pageName not in self.configItems:
610 page = self.emptyPage 610 page = self.emptyPage
611 else: 611 else:
612 pageData = self.configItems[pageName] 612 pageData = self.configItems[pageName]
613 if pageData[-1] is None and pageData[2] is not None: 613 if pageData[-1] is None and pageData[2] is not None:
614 # the page was not loaded yet, create it 614 # the page was not loaded yet, create it

eric ide

mercurial