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