- Added option to disable peer host name resolution (disabled as a default)

- Fix several other bugs related to properties and preferences
This commit is contained in:
Christophe Dumez 2009-11-15 10:00:07 +00:00
parent 3762c37517
commit 5962ef79cb
8 changed files with 81 additions and 15 deletions

View file

@ -760,6 +760,10 @@ void GUI::processDownloadedFiles(QString path, QString url) {
}
}
void GUI::optionsSaved() {
loadPreferences();
}
// Load program preferences
void GUI::loadPreferences(bool configure_session) {
BTSession->addConsoleMessage(tr("Options were saved successfully."));
@ -830,6 +834,9 @@ void GUI::loadPreferences(bool configure_session) {
displayRSSTab(false);
}
// Torrent properties
properties->reloadPreferences();
if(configure_session)
BTSession->configureSession();
@ -1001,7 +1008,7 @@ void GUI::createTrayIcon() {
// Display Program Options
void GUI::on_actionOptions_triggered() {
options = new options_imp(this);
connect(options, SIGNAL(status_changed()), this, SLOT(loadPreferences(bool)));
connect(options, SIGNAL(status_changed()), this, SLOT(optionsSaved()));
}
bool GUI::initWebUi(QString username, QString password, int port) {