diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-09 15:11:47 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-09 15:12:31 +0200 |
| commit | 2abbe5fc88f3197c32c8d3049bc2e271faf28e41 (patch) | |
| tree | e39b457982e03f91d6eac7376777bcb81f29daee /src | |
| parent | Merge pull request #1230 from sipa/warnings (diff) | |
| download | discoin-2abbe5fc88f3197c32c8d3049bc2e271faf28e41.tar.xz discoin-2abbe5fc88f3197c32c8d3049bc2e271faf28e41.zip | |
Show testnet icon for tray-menu option Show/Hide / set tooltip for tray icon to match non-testnet text (just [testnet] added) / remove obsolete title_testnet variable'
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index f750d29cd..c2fcc10b7 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -324,8 +324,7 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel) { if(clientModel->isTestNet()) { - QString title_testnet = windowTitle() + QString(" ") + tr("[testnet]"); - setWindowTitle(title_testnet); + setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]")); #ifndef Q_WS_MAC setWindowIcon(QIcon(":icons/bitcoin_testnet")); #else @@ -333,8 +332,9 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel) #endif if(trayIcon) { - trayIcon->setToolTip(title_testnet); + trayIcon->setToolTip(tr("Bitcoin client") + QString(" ") + tr("[testnet]")); trayIcon->setIcon(QIcon(":/icons/toolbar_testnet")); + toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet")); } } |