aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2015-11-25 09:04:49 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2015-11-25 09:05:19 +0100
commit26af1ac7cbce11e44c66f3032dfe014eaf311e1c (patch)
tree68e947520f90f6893ea4aa8c876a1a192e9b3f0d /src/qt/bitcoin.cpp
parentb19fe277dd6208b80fea837adf9e64631b07f946 (diff)
parentf71bfefcb0c06c4639a668a325acfd49aa7b3a8c (diff)
downloadbitcoin-26af1ac7cbce11e44c66f3032dfe014eaf311e1c.tar.xz
Merge pull request #7006
f71bfef add UI help for -resetguisettings (Jonas Schnelli) ae98388 [Qt] add startup option to reset Qt settings (Jonas Schnelli)
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index bda8acff15..06a6c239ef 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -202,7 +202,7 @@ public:
void createPaymentServer();
#endif
/// Create options model
- void createOptionsModel();
+ void createOptionsModel(bool resetSettings);
/// Create main window
void createWindow(const NetworkStyle *networkStyle);
/// Create splash screen
@@ -352,9 +352,9 @@ void BitcoinApplication::createPaymentServer()
}
#endif
-void BitcoinApplication::createOptionsModel()
+void BitcoinApplication::createOptionsModel(bool resetSettings)
{
- optionsModel = new OptionsModel();
+ optionsModel = new OptionsModel(NULL, resetSettings);
}
void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
@@ -645,7 +645,7 @@ int main(int argc, char *argv[])
qInstallMessageHandler(DebugMessageHandler);
#endif
// Load GUI settings from QSettings
- app.createOptionsModel();
+ app.createOptionsModel(mapArgs.count("-resetguisettings") != 0);
// Subscribe to global signals from core
uiInterface.InitMessage.connect(InitMessage);