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 |