aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Moore <dooglus@gmail.com>2012-02-24 18:54:18 -0800
committerLuke Dashjr <luke-jr+git@utopios.org>2012-02-27 13:07:10 -0500
commit0b11082d361ec08bca5025dbbc7f0b78c0fb8e13 (patch)
treeb1c47a4ad4ed7e437bbe5a3c2c152acbb0b3d77d
parent1be5779124680ad6f411377f0a052f691855d2ec (diff)
downloadbitcoin-0b11082d361ec08bca5025dbbc7f0b78c0fb8e13.tar.xz
Don't show splash screen when -min is specified on the command line.
-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 2142db5a36..54e6bb34c2 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -147,9 +147,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("-min"))
+ {
+ splash.show();
+ splash.setAutoFillBackground(true);
+ splashref = &splash;
+ }
app.processEvents();
@@ -163,7 +166,8 @@ int main(int argc, char *argv[])
// Put this in a block, so that BitcoinGUI is cleaned up properly before
// calling Shutdown().
BitcoinGUI window;
- splash.finish(&window);
+ if (splashref)
+ splash.finish(&window);
OptionsModel optionsModel(pwalletMain);
ClientModel clientModel(&optionsModel);
WalletModel walletModel(pwalletMain, &optionsModel);