mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
OptionsModel now has MapPortUPnP=false if UPNP is not supported
This commit is contained in:
parent
622da5df6e
commit
6a3aef39e7
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue