Displaying invalid value with Error indicator, that way the user can see what is the invalid value and has the option to leave it or change it.

This commit is contained in:
MichaelFitzurka 2022-03-31 10:25:00 -04:00
parent ac1bdf2f9c
commit 6900368251

View File

@ -284,7 +284,10 @@ class PageListEditor(QWidget):
def listEntryText(self, page_dict):
text = str(int(page_dict['Image']) + 1)
if 'Type' in page_dict:
text += " (" + self.pageTypeNames[page_dict['Type']] + ")"
if page_dict["Type"] in self.pageTypeNames.keys():
text += " (" + self.pageTypeNames[page_dict['Type']] + ")"
else:
text += " (Error: " + page_dict["Type"] + ")"
return text
def getPageList(self):