aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorChris Moore <dooglus@gmail.com>2012-02-24 18:54:18 -0800
committerChris Moore <dooglus@gmail.com>2012-02-24 19:17:22 -0800
commitec4efde40c9b1b65c28669a2bc99e140a55a51e7 (patch)
treec0eae806284a283948ac5e52eb3ffafc0e8a9958 /src/qt
parent8c12851ed497797684588e09637d80a5abd5725e (diff)
Add option "-splash" so we can disable the splash screen.
Don't show splash screen when -min is specified on the command line.
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 354e87c983..03b89f06fc 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -183,9 +183,12 @@ int main(int argc, char *argv[])
app.setApplicationName(QApplication::translate("main", "Bitcoin-Qt"));
QSplashScreen splash(QPixmap(":/images/splash"), 0);
- splash.show();
- splash.setAutoFillBackground(true);
- splashref = &splash;
+ if (GetBoolArg("-splash", true) && !GetBoolArg("-min"))
+ {
+ splash.show();
+ splash.setAutoFillBackground(true);
+ splashref = &splash;
+ }
app.processEvents();
@@ -199,7 +202,8 @@ int main(int argc, char *argv[])
// Put this in a block, so that BitcoinGUI is cleaned up properly before
// calling Shutdown() in case of exceptions.
BitcoinGUI window;
- splash.finish(&window);
+ if (splashref)
+ splash.finish(&window);
OptionsModel optionsModel(pwalletMain);
ClientModel clientModel(&optionsModel);
WalletModel walletModel(pwalletMain, &optionsModel);