|
|
|
@ -197,9 +197,10 @@ int main(int argc, char *argv[])
@@ -197,9 +197,10 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
// Application identification (must be set before OptionsModel is initialized,
|
|
|
|
|
// as it is used to locate QSettings)
|
|
|
|
|
bool isaTestNet = TestNet() || RegTest(); |
|
|
|
|
QApplication::setOrganizationName("Bitcoin"); |
|
|
|
|
QApplication::setOrganizationDomain("bitcoin.org"); |
|
|
|
|
if (TestNet()) // Separate UI settings for testnet
|
|
|
|
|
if (isaTestNet) // Separate UI settings for testnets
|
|
|
|
|
QApplication::setApplicationName("Bitcoin-Qt-testnet"); |
|
|
|
|
else |
|
|
|
|
QApplication::setApplicationName("Bitcoin-Qt"); |
|
|
|
@ -230,7 +231,7 @@ int main(int argc, char *argv[])
@@ -230,7 +231,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
PaymentServer* paymentServer = new PaymentServer(&app); |
|
|
|
|
|
|
|
|
|
// User language is set up: pick a data directory
|
|
|
|
|
Intro::pickDataDirectory(TestNet()); |
|
|
|
|
Intro::pickDataDirectory(isaTestNet); |
|
|
|
|
|
|
|
|
|
// Install global event filter that makes sure that long tooltips can be word-wrapped
|
|
|
|
|
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app)); |
|
|
|
@ -258,7 +259,7 @@ int main(int argc, char *argv[])
@@ -258,7 +259,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SplashScreen splash(QPixmap(), 0); |
|
|
|
|
SplashScreen splash(QPixmap(), 0, isaTestNet); |
|
|
|
|
if (GetBoolArg("-splash", true) && !GetBoolArg("-min", false)) |
|
|
|
|
{ |
|
|
|
|
splash.show(); |
|
|
|
@ -280,7 +281,7 @@ int main(int argc, char *argv[])
@@ -280,7 +281,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
boost::thread_group threadGroup; |
|
|
|
|
|
|
|
|
|
BitcoinGUI window(TestNet(), 0); |
|
|
|
|
BitcoinGUI window(isaTestNet, 0); |
|
|
|
|
guiref = &window; |
|
|
|
|
|
|
|
|
|
QTimer* pollShutdownTimer = new QTimer(guiref); |
|
|
|
|