diff options
| author | Andrey Alekseenko <[email protected]> | 2012-12-12 11:31:30 +0400 |
|---|---|---|
| committer | Andrey <[email protected]> | 2012-12-12 13:10:02 +0400 |
| commit | 6a3aef39e70e6da81cbd2484c1721d44f9b02d9a (patch) | |
| tree | 3c41e41b7197035ee69f5a3f8ae8968052eab9da /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #2068 from Diapolo/CheckDiskSpace (diff) | |
| download | discoin-6a3aef39e70e6da81cbd2484c1721d44f9b02d9a.tar.xz discoin-6a3aef39e70e6da81cbd2484c1721d44f9b02d9a.zip | |
OptionsModel now has MapPortUPnP=false if UPNP is not supported
Diffstat (limited to 'src/qt/optionsmodel.cpp')
| -rw-r--r-- | src/qt/optionsmodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index e3c9413f1..5dac5a6c4 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -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: { |