aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2012-10-25 05:52:55 -0700
committerWladimir J. van der Laan <[email protected]>2012-10-25 05:52:55 -0700
commit7a1786084db43519cff0e7b3e7bc742dede2c731 (patch)
tree45573e801db370573325d684f5a86272d39fb831 /src/qt/clientmodel.cpp
parentMerge pull request #1955 from gmaxwell/gbt_paramfix (diff)
parentShow warning when using prerelease version (diff)
downloaddiscoin-7a1786084db43519cff0e7b3e7bc742dede2c731.tar.xz
discoin-7a1786084db43519cff0e7b3e7bc742dede2c731.zip
Merge pull request #1956 from laanwj/2012_10_prerelease_warning
Show warning when using prerelease version
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 990b364a9..25db695a0 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -88,9 +88,7 @@ void ClientModel::updateAlert(const QString &hash, int status)
}
}
- // Emit a numBlocksChanged when the status message changes,
- // so that the view recomputes and updates the status bar.
- emit numBlocksChanged(getNumBlocks(), getNumBlocksOfPeers());
+ emit alertsChanged(getStatusBarWarnings());
}
bool ClientModel::isTestNet() const
@@ -133,6 +131,11 @@ QString ClientModel::formatBuildDate() const
return QString::fromStdString(CLIENT_DATE);
}
+bool ClientModel::isReleaseVersion() const
+{
+ return CLIENT_VERSION_IS_RELEASE;
+}
+
QString ClientModel::clientName() const
{
return QString::fromStdString(CLIENT_NAME);