--- apps/ktorrent/ktorrent.cpp +++ apps/ktorrent/ktorrent.cpp 2006/05/23 15:57:30 @@ -320,6 +320,7 @@ //update QM m_core->getQueueManager()->orderQueue(); +#if 0 dht::DHTBase & ht = Globals::instance().getDHT(); if (Settings::dhtSupport() && !ht.isRunning()) { @@ -335,6 +336,7 @@ ht.stop(); ht.start(KGlobal::dirs()->saveLocation("data","ktorrent") + "dht_table",Settings::dhtPort()); } +#endif if (Settings::useEncryption()) { --- apps/ktorrent/ktorrent.kcfg +++ apps/ktorrent/ktorrent.kcfg 2006/05/23 15:31:53 @@ -79,16 +79,6 @@ 0 - - - false - - - - 6881 - 0 - 65535 - 4 --- apps/ktorrent/pref.cpp +++ apps/ktorrent/pref.cpp 2006/05/23 15:59:53 @@ -153,12 +153,14 @@ Settings::setKeepSeeding(dp->keep_seeding->isChecked()); Settings::setPort(dp->port->value()); Settings::setNumUploadSlots(dp->num_upload_slots->value()); +#if 0 if (Settings::dhtSupport() && dp->udp_tracker_port->value() == Settings::dhtPort()) { QString msg = i18n("The DHT port needs to be different then the UDP tracker port !"); KMessageBox::error(0,msg,i18n("Error")); return false; } +#endif Settings::setUdpTrackerPort(dp->udp_tracker_port->value()); return true; } @@ -202,8 +204,10 @@ this,SLOT(autosaveChecked(bool ))); connect(gp->custom_ip_check,SIGNAL(toggled(bool)), this,SLOT(customIPChecked(bool ))); +#if 0 connect(gp->use_dht,SIGNAL(toggled(bool)), this,SLOT(dhtChecked( bool ))); +#endif connect(gp->use_encryption,SIGNAL(toggled(bool)), this,SLOT(useEncryptionChecked( bool ))); } @@ -245,7 +249,8 @@ Settings::setMemoryUsage(gp->mem_usage->currentItem()); Settings::setGuiUpdateInterval(gp->gui_interval->currentItem()); - + +#if 0 if (gp->use_dht->isChecked() && gp->dht_port->value() == Settings::udpTrackerPort()) { QString msg = i18n("The DHT port needs to be different then the UDP tracker port !"); @@ -255,6 +260,7 @@ Settings::setDhtSupport(gp->use_dht->isChecked()); Settings::setDhtPort(gp->dht_port->value()); +#endif Settings::setUseEncryption(gp->use_encryption->isChecked()); Settings::setAllowUnencryptedConnections(gp->allow_unencrypted->isChecked()); return true; @@ -278,7 +284,9 @@ void PrefPageTwo::dhtChecked(bool on) { +#if 0 gp->dht_port->setEnabled(on); +#endif } void PrefPageTwo::updateData() @@ -318,11 +326,11 @@ gp->mem_usage->setCurrentItem(Settings::memoryUsage()); gp->gui_interval->setCurrentItem(Settings::guiUpdateInterval()); - +#if 0 gp->use_dht->setChecked(Settings::dhtSupport()); gp->dht_port->setValue(Settings::dhtPort()); gp->dht_port->setEnabled(Settings::dhtSupport()); - +#endif gp->use_encryption->setChecked(Settings::useEncryption()); gp->allow_unencrypted->setChecked(Settings::allowUnencryptedConnections()); gp->allow_unencrypted->setEnabled(Settings::useEncryption());