From 371dcb0a45d2176fceeeada3c68c7aadea1734b5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 27 Mar 2007 20:33:00 +0000 Subject: [PATCH] - Disable UPnP in options if qBT isn't compiled with UPnP support --- src/options_imp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/options_imp.cpp b/src/options_imp.cpp index 0b82036b7..15b498386 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -45,6 +45,11 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){ delFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png"))); enableProxyAuth_checkBox->setIcon(QIcon(QString::fromUtf8(":/Icons/encrypted.png"))); to_range->setText(tr("to", " to ")); + // If UPnP is not supported then disable it +#ifdef NO_UPNP + groupMainUPnP->setEnabled(false); + disableUPnP->setChecked(true); +#endif // Languages supported combo_i18n->addItem((QIcon(QString::fromUtf8(":/Icons/flags/united_kingdom.png"))), QString::fromUtf8("English")); locales << "en_GB";