diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-18 09:45:36 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-20 11:18:50 +0100 |
| commit | 2ea980a77cc28374a55aa1fdce953f9b570e0857 (patch) | |
| tree | d904a6f5126430fe329509904b2274b3c9dfa74f /src/qt/clientmodel.cpp | |
| parent | Merge pull request #3415 (diff) | |
| download | discoin-2ea980a77cc28374a55aa1fdce953f9b570e0857.tar.xz discoin-2ea980a77cc28374a55aa1fdce953f9b570e0857.zip | |
qt: Treat regtest as testnet
No need to do anything special in the GUI for regtest mode,
but do treat it at testnet not mainnet to prevent confusion.
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index c64e411bc..f273b9ea4 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -123,9 +123,12 @@ void ClientModel::updateAlert(const QString &hash, int status) emit alertsChanged(getStatusBarWarnings()); } -bool ClientModel::isTestNet() const +QString ClientModel::getNetworkName() const { - return TestNet(); + QString netname(QString::fromStdString(Params().DataDir())); + if(netname.isEmpty()) + netname = "main"; + return netname; } bool ClientModel::inInitialBlockDownload() const |