Some changes to the project did not trigger the project changed flag. Also trimmed some logging output.

This commit is contained in:
Veronica K. B. Olsen
2019-05-05 22:25:53 +02:00
parent 971d8a9a59
commit fd3b05f118
3 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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")
+1
View File
@@ -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
+1
View File
@@ -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