Updated debug info

This commit is contained in:
Veronica K. B. Olsen
2019-10-06 15:57:45 +02:00
parent d7e485af05
commit 74bc412739
2 changed files with 4 additions and 5 deletions
+3
View File
@@ -547,6 +547,9 @@ class GuiDocEditor(QTextEdit):
theCursor.endEditBlock()
theCursor.setPosition(xPos)
self.setTextCursor(theCursor)
logger.verbose("Replaced occurrence of '%s' with '%s' on line %d" % (
searchFor, replWith, theCursor.blockNumber()
))
if searchFor != "":
self._findNext()
return
+1 -5
View File
@@ -81,15 +81,11 @@ class GuiSearchBar(QFrame):
##
def setSearchText(self, theText):
if not self.isVisible():
self.setVisible(True)
self.searchBox.setText(theText)
self.searchBox.setFocus(True)
logger.debug("Setting search text to '%s'" % theText)
logger.verbose("Setting search text to '%s'" % theText)
return True
def setReplaceText(self, theText):