Merge pull request #2095 from al42and/upnp

OptionsModel now has MapPortUPnP=false if UPNP is not supported
This commit is contained in:
Gavin Andresen 2012-12-12 09:31:24 -08:00
commit 278a09a6c6

View File

@ -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: {