From 0a1ae184127597d37494e7edc608240906bc07aa Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 14 Nov 2009 14:18:32 +0000 Subject: [PATCH] - Remove outdated program preferences --- src/options.ui | 16 +++------------- src/options_imp.cpp | 9 +++++++-- src/reverseresolution.h | 3 ++- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/options.ui b/src/options.ui index fffc265bc..6769f9204 100644 --- a/src/options.ui +++ b/src/options.ui @@ -484,7 +484,7 @@ - Action for double click + Action on double click @@ -492,7 +492,7 @@ - Download list: + Downloading: @@ -517,11 +517,6 @@ Open folder - - - Show properties - - @@ -544,7 +539,7 @@ - Seeding list: + Completed: @@ -560,11 +555,6 @@ Open folder - - - Show properties - - diff --git a/src/options_imp.cpp b/src/options_imp.cpp index 5df39bdda..fa4f33009 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -573,9 +573,14 @@ void options_imp::loadOptions(){ textScanDir->setText(strValue); enableDirScan(2); } - actionTorrentDlOnDblClBox->setCurrentIndex(settings.value(QString::fromUtf8("DblClOnTorDl"), 0).toInt()); - actionTorrentFnOnDblClBox->setCurrentIndex(settings.value(QString::fromUtf8("DblClOnTorFn"), 0).toInt()); + intValue = settings.value(QString::fromUtf8("DblClOnTorDl"), 0).toInt(); + if(intValue >= actionTorrentDlOnDblClBox->count()) + intValue = 0; + actionTorrentDlOnDblClBox->setCurrentIndex(intValue); intValue = settings.value(QString::fromUtf8("DblClOnTorFn"), 1).toInt(); + if(intValue >= actionTorrentFnOnDblClBox->count()) + intValue = 1; + actionTorrentFnOnDblClBox->setCurrentIndex(intValue); // End Downloads preferences settings.endGroup(); // Connection preferences diff --git a/src/reverseresolution.h b/src/reverseresolution.h index 92ff999ac..cfeb90cce 100644 --- a/src/reverseresolution.h +++ b/src/reverseresolution.h @@ -115,7 +115,8 @@ protected slots: if(!ips.empty()) cond.wakeOne(); mut.unlock(); - sender()->deleteLater(); + delete sender(); + //sender()->deleteLater(); } protected: