summaryrefslogtreecommitdiff
path: root/client/Dialog.cpp
diff options
context:
space:
mode:
authorAlex Borisov <b0ric.alex@gmail.com>2012-03-25 22:16:30 +0300
committerAlex Borisov <b0ric.alex@gmail.com>2012-03-25 22:16:30 +0300
commitec80c67bcfec64177910f39d31c4b20974629096 (patch)
tree7132d5c394e0e62d3d17a40ce7587d270f3706b6 /client/Dialog.cpp
parentfc68a17bda76f7ffe8493bb8f9593631b9d05ba1 (diff)
Three color speed values
Diffstat (limited to 'client/Dialog.cpp')
-rw-r--r--client/Dialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/Dialog.cpp b/client/Dialog.cpp
index 169d33e..3e96784 100644
--- a/client/Dialog.cpp
+++ b/client/Dialog.cpp
@@ -74,6 +74,12 @@ ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent, Qt::Tool | Qt::Framel
QString::number(speed, 'f', 3) +
QString("</b></font>");
}
+ else if (staticProxyLine[j].speed > cfg->StaticProxySpeedLowCrucial)
+ {
+ btnStr = QString("<font color=\"orange\"><b>") +
+ QString::number(speed, 'f', 3) +
+ QString("</b></font>");
+ }
else
{
btnStr = QString("<font color=\"red\"><b>") +
@@ -126,7 +132,6 @@ bool ProxyDialog::event(QEvent* event)
{
if (event->type() == QEvent::ActivationChange)
{
- Logger::Debug("Activation change\n");
if(QApplication::activeWindow() != this)
{
this->close();