Fixed crash in project countStatus when tree contains orphaned item
This commit is contained in:
@@ -44,7 +44,6 @@ class GuiConfigEditor(QDialog):
|
|||||||
self.setWindowTitle("Preferences")
|
self.setWindowTitle("Preferences")
|
||||||
self.guiDeco = self.theParent.theTheme.loadDecoration("settings",(64,64))
|
self.guiDeco = self.theParent.theTheme.loadDecoration("settings",(64,64))
|
||||||
|
|
||||||
self.theProject.countStatus()
|
|
||||||
self.tabMain = GuiConfigEditGeneral(self.theParent)
|
self.tabMain = GuiConfigEditGeneral(self.theParent)
|
||||||
self.tabEditor = GuiConfigEditEditor(self.theParent)
|
self.tabEditor = GuiConfigEditEditor(self.theParent)
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ class GuiExport(QDialog):
|
|||||||
|
|
||||||
self.guiDeco = self.theParent.theTheme.loadDecoration("export",(64,64))
|
self.guiDeco = self.theParent.theTheme.loadDecoration("export",(64,64))
|
||||||
|
|
||||||
self.theProject.countStatus()
|
|
||||||
self.tabMain = GuiExportMain(self.theParent, self.theProject, self.optState)
|
self.tabMain = GuiExportMain(self.theParent, self.theProject, self.optState)
|
||||||
self.tabPandoc = GuiExportPandoc(self.theParent, self.theProject, self.optState)
|
self.tabPandoc = GuiExportPandoc(self.theParent, self.theProject, self.optState)
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ class NWStatus():
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def lookupEntry(self, theLabel):
|
def lookupEntry(self, theLabel):
|
||||||
|
if theLabel is None:
|
||||||
|
return None
|
||||||
theLabel = theLabel.strip()
|
theLabel = theLabel.strip()
|
||||||
if theLabel in self.theMap.keys():
|
if theLabel in self.theMap.keys():
|
||||||
return self.theMap[theLabel]
|
return self.theMap[theLabel]
|
||||||
|
|||||||
Reference in New Issue
Block a user