aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-12-05 07:53:15 -0800
committerGavin Andresen <[email protected]>2011-12-05 07:53:15 -0800
commit8848a70ba16765313438a289b8837732e81650f7 (patch)
tree5e15988fea6b3d84a152111509ebb82730d57bce /src
parentMerge pull request #682 from TheBlueMatt/gdicrypto (diff)
parentImplement -min option to start minimized (diff)
downloaddiscoin-8848a70ba16765313438a289b8837732e81650f7.tar.xz
discoin-8848a70ba16765313438a289b8837732e81650f7.zip
Merge pull request #679 from laanwj/cmdline_minimize
Implement -min option to start minimized
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 6afa9671d..4aaad6bd2 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
{
{
// Put this in a block, so that BitcoinGUI is cleaned up properly before
- // calling Shutdown().
+ // calling Shutdown() in case of exceptions.
BitcoinGUI window;
splash.finish(&window);
OptionsModel optionsModel(pwalletMain);
@@ -170,7 +170,15 @@ int main(int argc, char *argv[])
window.setClientModel(&clientModel);
window.setWalletModel(&walletModel);
- window.show();
+ // If -min option passed, start window minimized.
+ if(GetBoolArg("-min"))
+ {
+ window.showMinimized();
+ }
+ else
+ {
+ window.show();
+ }
app.exec();