Browse Source

- Fixed compiling errors when upnp is disabled (chris)

adaptive-webui-19844
Arnaud Demaiziere 18 years ago
parent
commit
e8e40c7bcf
  1. 3
      src/bittorrent.cpp
  2. 2
      src/options_imp.cpp

3
src/bittorrent.cpp

@ -27,7 +27,10 @@ @@ -27,7 +27,10 @@
#include "bittorrent.h"
#include "misc.h"
#include "downloadThread.h"
#ifndef NO_UPNP
#include "UPnP.h"
#endif
// Main constructor
bittorrent::bittorrent(){

2
src/options_imp.cpp

@ -674,6 +674,7 @@ void options_imp::disableDHTGroup(int checkBoxValue){ @@ -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){ @@ -683,6 +684,7 @@ void options_imp::disableUPnPGroup(int checkBoxValue){
groupUPnP->setEnabled(true);
}
}
#endif
void options_imp::enableSavePath(int checkBoxValue){
if(checkBoxValue==2){

Loading…
Cancel
Save