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)
|
QTextEdit.__init__(self)
|
||||||
|
|
||||||
logger.debug("Initialising DocEditor ...")
|
logger.debug("Initialising DocEditor ...")
|
||||||
|
|
||||||
# Class Variables
|
# Class Variables
|
||||||
self.mainConf = nw.CONFIG
|
self.mainConf = nw.CONFIG
|
||||||
self.theParent = theParent
|
self.theParent = theParent
|
||||||
@@ -275,7 +275,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
"""
|
"""
|
||||||
sinceActive = time()-self.lastEdit
|
sinceActive = time()-self.lastEdit
|
||||||
if sinceActive > 5*self.wcInterval:
|
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()
|
self.wcTimer.stop()
|
||||||
elif self.wCounter.isRunning():
|
elif self.wCounter.isRunning():
|
||||||
logger.verbose("Word counter thread is busy")
|
logger.verbose("Word counter thread is busy")
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ class GuiItemEditor(QDialog):
|
|||||||
self.theItem.setName(itemName)
|
self.theItem.setName(itemName)
|
||||||
self.theItem.setStatus(itemStatus)
|
self.theItem.setStatus(itemStatus)
|
||||||
self.theItem.setLayout(itemLayout)
|
self.theItem.setLayout(itemLayout)
|
||||||
|
self.theProject.setProjectChanged(True)
|
||||||
self.accept()
|
self.accept()
|
||||||
self.close()
|
self.close()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ class GuiProjectEditor(QDialog):
|
|||||||
self.theProject.setProjectName(projName)
|
self.theProject.setProjectName(projName)
|
||||||
self.theProject.setBookTitle(bookTitle)
|
self.theProject.setBookTitle(bookTitle)
|
||||||
self.theProject.setBookAuthors(bookAuthors)
|
self.theProject.setBookAuthors(bookAuthors)
|
||||||
|
self.theProject.setProjectChanged(True)
|
||||||
self.close()
|
self.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user