From b54c1ec139a10eb25dc777bd759bfe465911df56 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 9 Mar 2023 08:06:30 +0200 Subject: [PATCH] Debugger: Clear also global log when clearing the log If the user wants to clear the log in order to read it only "from now on", then the sensible way to do that is to clear the log, finish the debugging session, then copy the output from the log pane. But this flow did not work, because when the debugger is done, you no longer have access to the live log window, only to the global window, and this pane is not cleared, so all the logs are still there. Change-Id: I89d8a5b8aab22c53e8c2eceac4c5482931cdd8b6 Reviewed-by: hjk --- src/plugins/debugger/logwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/logwindow.cpp b/src/plugins/debugger/logwindow.cpp index c89fa7d2540..a8b519aad05 100644 --- a/src/plugins/debugger/logwindow.cpp +++ b/src/plugins/debugger/logwindow.cpp @@ -576,6 +576,7 @@ void LogWindow::clearContents() { m_combinedText->clear(); m_inputText->clear(); + theGlobalLog->clearContents(); } void LogWindow::setCursor(const QCursor &cursor)