Some changes to the project did not trigger the project changed flag. Also trimmed some logging output.
This commit is contained in:
+2
-2
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user