From 6a3aef39e70e6da81cbd2484c1721d44f9b02d9a Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Wed, 12 Dec 2012 11:31:30 +0400 Subject: [PATCH] OptionsModel now has MapPortUPnP=false if UPNP is not supported --- src/qt/optionsmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index e3c9413f..5dac5a6c 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: {