Skip to content

Commit 7c1b659

Browse files
committed
qtvcp -machine_log: fix clearing of severity log
1 parent 325b27a commit 7c1b659

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/python/qtvcp/widgets/machine_log.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ def remove_options(self, option, to_remove):
126126
return ','.join(options)
127127

128128
def updateMachineLog(self, message, option):
129+
130+
if option == 'DELETE':
131+
self.clear()
132+
return
133+
129134
if message:
130135
if option is None: option = ''
131136

@@ -202,7 +207,7 @@ def loadIntegratorLog(self):
202207
logText = file.readAll()
203208
file.close()
204209
if str(logText, encoding='utf8') == "":
205-
self.logText.setPlainText('No Logging found. Is QtVcp in debugging or verbose mode (-i, -d or -v)?')
210+
self.logText.setPlainText('No Logging found. Is QtVcp in info, debugging or verbose mode (-i, -d or -v)?')
206211
return
207212
self.logText.setPlainText(str(logText, encoding='utf8'))
208213
# scroll down to show last entry

0 commit comments

Comments
 (0)