aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 19:14:42 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 19:14:42 +0200
commitd56c6f312c7784e30794ff71eb0b0ec94cdf15ef (patch)
tree78d9d9b24f705e0497523ec32fa77b40c2136fcf /src/qt/bitcoingui.cpp
parentef079e183bf1be9f5a61a05018ee4480db86bc45 (diff)
Make it very clear when on testnet (green icon, add [testnet] to title)
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 2b1990b9cb..4e5eaa0683 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -182,6 +182,17 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
{
this->clientModel = clientModel;
+ if(clientModel->isTestNet())
+ {
+ setWindowTitle(tr("Bitcoin [testnet]"));
+ setWindowIcon(QIcon(":icons/bitcoin_testnet"));
+ if(trayIcon)
+ {
+ trayIcon->setToolTip(tr("Bitcoin [testnet]"));
+ trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
+ }
+ }
+
// Keep up to date with client
setNumConnections(clientModel->getNumConnections());
connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
@@ -229,6 +240,7 @@ void BitcoinGUI::createTrayIcon()
trayIcon = new QSystemTrayIcon(this);
trayIcon->setContextMenu(trayIconMenu);
+ trayIcon->setToolTip("Bitcoin client");
trayIcon->setIcon(QIcon(":/icons/toolbar"));
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));