From e6ab57b8b1275137d873c0c465aeffe61c13c324 Mon Sep 17 00:00:00 2001 From: Sky Date: Sun, 19 Jan 2014 01:33:32 +0000 Subject: [PATCH] Try to improve status arrows a bit --- gui/MainWindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index d5cc1d44..cca1ecac 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -522,10 +522,13 @@ void MainWindow::updateNewsLabel() static QString convertStatus(const QString &status) { - if(status == "green") return "↑"; - else if(status == "yellow") return "-"; - else if(status == "red") return "↓"; - else return "?"; + QString ret = "?"; + + if(status == "green") ret = "↑"; + else if(status == "yellow") ret = "-"; + else if(status == "red") ret="↓"; + + return "" + ret + ""; } void MainWindow::reloadStatus()