mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 17:53:08 -07:00
- Disable UPnP in options if qBT isn't compiled with UPnP support
This commit is contained in:
parent
9408e8006d
commit
371dcb0a45
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||||
delFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png")));
|
delFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png")));
|
||||||
enableProxyAuth_checkBox->setIcon(QIcon(QString::fromUtf8(":/Icons/encrypted.png")));
|
enableProxyAuth_checkBox->setIcon(QIcon(QString::fromUtf8(":/Icons/encrypted.png")));
|
||||||
to_range->setText(tr("to", "<min port> to <max port>"));
|
to_range->setText(tr("to", "<min port> to <max port>"));
|
||||||
|
// If UPnP is not supported then disable it
|
||||||
|
#ifdef NO_UPNP
|
||||||
|
groupMainUPnP->setEnabled(false);
|
||||||
|
disableUPnP->setChecked(true);
|
||||||
|
#endif
|
||||||
// Languages supported
|
// Languages supported
|
||||||
combo_i18n->addItem((QIcon(QString::fromUtf8(":/Icons/flags/united_kingdom.png"))), QString::fromUtf8("English"));
|
combo_i18n->addItem((QIcon(QString::fromUtf8(":/Icons/flags/united_kingdom.png"))), QString::fromUtf8("English"));
|
||||||
locales << "en_GB";
|
locales << "en_GB";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue