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)
This commit is contained in:
Philip Kaufmann
2014-05-05 21:06:14 +02:00
parent 9d97e83bf6
commit d4e1c61212
3 changed files with 8 additions and 8 deletions

View File

@@ -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");