diff options
| author | Philip Kaufmann <[email protected]> | 2014-05-05 21:06:14 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-05-20 15:34:19 +0200 |
| commit | d4e1c61212c3f28f80c7184aca81f5d118fad460 (patch) | |
| tree | b8121210dd1b276be3ea0d34e18afbe539a14405 /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #4197 (diff) | |
| download | discoin-d4e1c61212c3f28f80c7184aca81f5d118fad460.tar.xz discoin-d4e1c61212c3f28f80c7184aca81f5d118fad460.zip | |
add DEFAULT_UPNP constant in net
- as this is a shared Core/GUI setting, this makes it easier to keep them
in sync (also no new includes are needed)
Diffstat (limited to 'src/qt/optionsmodel.cpp')
| -rw-r--r-- | src/qt/optionsmodel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index e87a1d97e..051098315 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -106,11 +106,7 @@ void OptionsModel::Init() // Network if (!settings.contains("fUseUPnP")) -#ifdef USE_UPNP - settings.setValue("fUseUPnP", true); -#else - settings.setValue("fUseUPnP", false); -#endif + settings.setValue("fUseUPnP", DEFAULT_UPNP); if (!SoftSetBoolArg("-upnp", settings.value("fUseUPnP").toBool())) addOverriddenOption("-upnp"); |