diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index 74554b4e..61303a2f 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -32,7 +32,7 @@ class GuiDocEditor(QTextEdit): QTextEdit.__init__(self) logger.debug("Initialising DocEditor ...") - + # Class Variables self.mainConf = nw.CONFIG self.theParent = theParent @@ -275,7 +275,7 @@ class GuiDocEditor(QTextEdit): """ sinceActive = time()-self.lastEdit if sinceActive > 5*self.wcInterval: - logger.debug("Stopping word count timer due to no activity over the last %.3f seconds" % sinceActive) + logger.debug("Stopping word count timer: no activity last %.1f seconds" % sinceActive) self.wcTimer.stop() elif self.wCounter.isRunning(): logger.verbose("Word counter thread is busy") diff --git a/nw/gui/itemeditor.py b/nw/gui/itemeditor.py index f8147167..2ee19314 100644 --- a/nw/gui/itemeditor.py +++ b/nw/gui/itemeditor.py @@ -122,6 +122,7 @@ class GuiItemEditor(QDialog): self.theItem.setName(itemName) self.theItem.setStatus(itemStatus) self.theItem.setLayout(itemLayout) + self.theProject.setProjectChanged(True) self.accept() self.close() return diff --git a/nw/gui/projecteditor.py b/nw/gui/projecteditor.py index 38d74851..c7638b87 100644 --- a/nw/gui/projecteditor.py +++ b/nw/gui/projecteditor.py @@ -86,6 +86,7 @@ class GuiProjectEditor(QDialog): self.theProject.setProjectName(projName) self.theProject.setBookTitle(bookTitle) self.theProject.setBookAuthors(bookAuthors) + self.theProject.setProjectChanged(True) self.close() return