aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiconstants.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-03-11 08:32:07 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-11 08:46:01 +0100
commitc52c4e5d14fb20a0abc6fdcf8601ae5a0626ddcf (patch)
treed88fb17b4d81bc9c91039e49c78b5d8307df17ce /src/qt/guiconstants.h
parenta63f8b7b36e39722024a0ba061ca214f00a8f1bd (diff)
qt: Make it possible again to specify -testnet in config file
Changes for the datadir chooser have made it impossible to specify the network (testnet/regtest) in the configuration file for the GUI. Reorganize the initialization sequence to make this possible again. - Moves the "datadir" QSetting so that is no longer dependent on the network-specific application name (doing otherwise would create a chicken-and-egg problem). - Re-initialize translations after choosing network. There may be a different language configured in network-specific settings (slim chance, but handle it for sanity). Fixes point 1 of #3840.
Diffstat (limited to 'src/qt/guiconstants.h')
-rw-r--r--src/qt/guiconstants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h
index 9f6588bc9e..5ae4bc833d 100644
--- a/src/qt/guiconstants.h
+++ b/src/qt/guiconstants.h
@@ -41,4 +41,9 @@ static const int MAX_PAYMENT_REQUEST_SIZE = 50000; // bytes
/* Number of frames in spinner animation */
#define SPINNER_FRAMES 35
+#define QAPP_ORG_NAME "Bitcoin"
+#define QAPP_ORG_DOMAIN "bitcoin.org"
+#define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
+#define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
+
#endif // GUICONSTANTS_H