From 62e21fb5d00c33df37b6faaf0626da120c4783bc Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 24 Oct 2012 21:47:07 +0200 Subject: Show warning when using prerelease version Implements #1948 - Add macro `CLIENT_VERSION_IS_RELEASE` to clientversion.h - When running a prerelease (the above macro is `false`): - In UI, show an orange warning bar at the top. This will be used for other warnings (and alerts) as well, instead of the status bar. - For `bitcoind`, show the warning in the "errors" field in `getinfo` response. --- src/qt/clientmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qt/clientmodel.h') diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 926390a07a..fd0135b3e6 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -42,6 +42,7 @@ public: QString formatFullVersion() const; QString formatBuildDate() const; + bool isReleaseVersion() const; QString clientName() const; QString formatClientStartupTime() const; @@ -60,6 +61,7 @@ private: signals: void numConnectionsChanged(int count); void numBlocksChanged(int count, int countOfPeers); + void alertsChanged(const QString &warnings); //! Asynchronous error notification void error(const QString &title, const QString &message, bool modal); -- cgit v1.2.3