diff --git a/nw/gui/dialogs/configeditor.py b/nw/gui/dialogs/configeditor.py index 8d3d4b0f..89bf6992 100644 --- a/nw/gui/dialogs/configeditor.py +++ b/nw/gui/dialogs/configeditor.py @@ -44,7 +44,6 @@ class GuiConfigEditor(QDialog): self.setWindowTitle("Preferences") self.guiDeco = self.theParent.theTheme.loadDecoration("settings",(64,64)) - self.theProject.countStatus() self.tabMain = GuiConfigEditGeneral(self.theParent) self.tabEditor = GuiConfigEditEditor(self.theParent) diff --git a/nw/gui/dialogs/export.py b/nw/gui/dialogs/export.py index 15a8ed7a..8d580f87 100644 --- a/nw/gui/dialogs/export.py +++ b/nw/gui/dialogs/export.py @@ -50,7 +50,6 @@ class GuiExport(QDialog): self.guiDeco = self.theParent.theTheme.loadDecoration("export",(64,64)) - self.theProject.countStatus() self.tabMain = GuiExportMain(self.theParent, self.theProject, self.optState) self.tabPandoc = GuiExportPandoc(self.theParent, self.theProject, self.optState) diff --git a/nw/project/status.py b/nw/project/status.py index 3edd417a..6e15f5b9 100644 --- a/nw/project/status.py +++ b/nw/project/status.py @@ -41,6 +41,8 @@ class NWStatus(): return True def lookupEntry(self, theLabel): + if theLabel is None: + return None theLabel = theLabel.strip() if theLabel in self.theMap.keys(): return self.theMap[theLabel]