Browse Source

OptionsModel now has MapPortUPnP=false if UPNP is not supported

miguelfreitas
Andrey Alekseenko 12 years ago committed by Andrey
parent
commit
6a3aef39e7
  1. 4
      src/qt/optionsmodel.cpp

4
src/qt/optionsmodel.cpp

@ -137,7 +137,11 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const @@ -137,7 +137,11 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const
case MinimizeToTray:
return QVariant(fMinimizeToTray);
case MapPortUPnP:
#ifdef USE_UPNP
return settings.value("fUseUPnP", GetBoolArg("-upnp", true));
#else
return QVariant(false);
#endif
case MinimizeOnClose:
return QVariant(fMinimizeOnClose);
case ProxyUse: {

Loading…
Cancel
Save