mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Fixed compiling errors when upnp is disabled (chris)
This commit is contained in:
@@ -27,7 +27,10 @@
|
|||||||
#include "bittorrent.h"
|
#include "bittorrent.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "downloadThread.h"
|
#include "downloadThread.h"
|
||||||
|
|
||||||
|
#ifndef NO_UPNP
|
||||||
#include "UPnP.h"
|
#include "UPnP.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Main constructor
|
// Main constructor
|
||||||
bittorrent::bittorrent(){
|
bittorrent::bittorrent(){
|
||||||
|
|||||||
@@ -674,6 +674,7 @@ void options_imp::disableDHTGroup(int checkBoxValue){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_UPNP
|
||||||
void options_imp::disableUPnPGroup(int checkBoxValue){
|
void options_imp::disableUPnPGroup(int checkBoxValue){
|
||||||
if(checkBoxValue==2){
|
if(checkBoxValue==2){
|
||||||
//Disable
|
//Disable
|
||||||
@@ -683,6 +684,7 @@ void options_imp::disableUPnPGroup(int checkBoxValue){
|
|||||||
groupUPnP->setEnabled(true);
|
groupUPnP->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void options_imp::enableSavePath(int checkBoxValue){
|
void options_imp::enableSavePath(int checkBoxValue){
|
||||||
if(checkBoxValue==2){
|
if(checkBoxValue==2){
|
||||||
|
|||||||
Reference in New Issue
Block a user