From c2c5731d50c44d0c5eca526a770b40d95dd350c3 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Thu, 14 May 2020 07:38:43 +0200 Subject: [PATCH] VcsOutputWindow: Fix creating links from command output After the refactoring of the output parsers in 1c6e4fbd3211bc180, NormalMessageFormat and ErrorMessageFormat are no longer parsed. To allow parsing and therefore generating links, the command output has to be declared as stdout or stderr, depending on the severity. Our own log and command messages are now (in contrast to Creator 4.12) no longer parsed for commit hashes and links, but this is acceptable. Parsing the command output is often more interesting. Change-Id: I7e7a96f4ff98edd88f5d9b8abddf94363768c0a6 Reviewed-by: Christian Kandeler --- src/plugins/vcsbase/vcsoutputwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/vcsoutputwindow.cpp b/src/plugins/vcsbase/vcsoutputwindow.cpp index 30b80b28a1b..e4dd115e739 100644 --- a/src/plugins/vcsbase/vcsoutputwindow.cpp +++ b/src/plugins/vcsbase/vcsoutputwindow.cpp @@ -262,10 +262,10 @@ void OutputWindowPlainTextEdit::setFormat(VcsOutputWindow::MessageStyle style) m_format = LogMessageFormat; break; case VcsOutputWindow::Error: - m_format = ErrorMessageFormat; + m_format = StdErrFormat; break; case VcsOutputWindow::Message: - m_format = NormalMessageFormat; + m_format = StdOutFormat; break; case VcsOutputWindow::Command: m_format = NormalMessageFormat;