diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-11-11 17:34:46 +0100 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-11-11 17:34:46 +0100 |
commit | 8f87264d1923440fff9f45f88493b7259e94cf5c (patch) | |
tree | 7becfc5afa8a7352b2e76c284daa3c114a40aa46 /mainwindow.cpp | |
parent | c589c99e60474cba0b37f641898487b905c1ebb1 (diff) |
Show git error output as (dark)gray instead of red, fixes https://github.com/IJHack/qtpass/issues/111
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index d12677d5..1c0c3954 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -735,7 +735,12 @@ void MainWindow::readyRead(bool finished = false) { } if (!error.isEmpty()) { - output = "<span style=\"color: red;\">" + error + "</span><br />" + output; + if (currentAction == GIT) { + // https://github.com/IJHack/qtpass/issues/111 + output = "<span style=\"color: darkgray;\">" + error + "</span><br />" + output; + } else { + output = "<span style=\"color: red;\">" + error + "</span><br />" + output; + } } output.replace(QRegExp("((?:https?|ftp)://\\S+)"), "<a href=\"\\1\">\\1</a>"); |