diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-12-03 17:57:30 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-12-04 10:03:57 +0100 |
| commit | 7915370cb959ac1add3cb3023149e165b67318b1 (patch) | |
| tree | c5203c006a8781a97627464e78ac532c0f250d83 /src/qt/bitcoin.cpp | |
| parent | allow for filtering addresses and labels by searching for the typed string an... (diff) | |
| download | discoin-7915370cb959ac1add3cb3023149e165b67318b1.tar.xz discoin-7915370cb959ac1add3cb3023149e165b67318b1.zip | |
Implement -min option to start minimized
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 12 |
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(); |