]> Git Repo - VerusCoin.git/commitdiff
OptionsModel now has MapPortUPnP=false if UPNP is not supported
authorAndrey Alekseenko <[email protected]>
Wed, 12 Dec 2012 07:31:30 +0000 (11:31 +0400)
committerAndrey <[email protected]>
Wed, 12 Dec 2012 09:10:02 +0000 (13:10 +0400)
src/qt/optionsmodel.cpp

index e3c9413f1bb7d42bfbc1f4b9aa2ebef8c5f042a6..5dac5a6c457e04377bd233c2b0211ab802f8dc12 100644 (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: {
This page took 0.026312 seconds and 4 git commands to generate.