Browse Source

when on testnet, set testnet icon for about dialog

- add a comment
0.8
Philip Kaufmann 13 years ago
parent
commit
56d673675d
  1. 3
      src/qt/bitcoingui.cpp

3
src/qt/bitcoingui.cpp

@ -345,6 +345,7 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
this->clientModel = clientModel; this->clientModel = clientModel;
if(clientModel) if(clientModel)
{ {
// Replace some strings and icons, when using the testnet
if(clientModel->isTestNet()) if(clientModel->isTestNet())
{ {
setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]")); setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]"));
@ -360,6 +361,8 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
trayIcon->setIcon(QIcon(":/icons/toolbar_testnet")); trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet")); toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet"));
} }
aboutAction->setIcon(QIcon(":/icons/toolbar_testnet"));
} }
// Keep up to date with client // Keep up to date with client

Loading…
Cancel
Save