Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ bool AppInit2(int argc, char* argv[])
//
// Parameters
//
// If Qt is used, parameters are parsed in qt/bitcoin.cpp's main()
#if !defined(QT_GUI)
ParseParameters(argc, argv);
#endif

if (mapArgs.count("-datadir"))
{
Expand Down
6 changes: 6 additions & 0 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ int main(int argc, char *argv[])
Q_INIT_RESOURCE(bitcoin);
QApplication app(argc, argv);

ParseParameters(argc, argv);

// Load language files for system locale:
// - First load the translator for the base language, without territory
// - Then load the more specific locale translator
Expand Down Expand Up @@ -173,7 +175,11 @@ int main(int argc, char *argv[])
// If -min option passed, start window minimized.
if(GetBoolArg("-min"))
{
// If we minimize to tray in the start-up phase, the GUI cannot be unminimized again
int fMinimizeToTrayTemp = fMinimizeToTray;
fMinimizeToTray = false;
window.showMinimized();
fMinimizeToTray = fMinimizeToTrayTemp;
}
else
{
Expand Down