From c568aa14eaa94bf5b3b438c4cf2a52cd84b133b6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 23 Apr 2010 05:58:04 +0000 Subject: [PATCH] (trunk qt) #2935 "Changing the 'Keep incomplete files in' Directory" -- fixed in trunk for 2.00 --- qt/prefs-dialog.cc | 5 +++-- qt/prefs-dialog.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/prefs-dialog.cc b/qt/prefs-dialog.cc index af4f15bcf..0434f4100 100644 --- a/qt/prefs-dialog.cc +++ b/qt/prefs-dialog.cc @@ -568,11 +568,12 @@ PrefsDialog :: createTorrentsTab( ) hig->addWideControl( checkBoxNew( tr( "Mo&ve .torrent file to the trash" ), Prefs::TRASH_ORIGINAL ) ); hig->addWideControl( checkBoxNew( tr( "Append \".&part\" to incomplete files' names" ), Prefs::RENAME_PARTIAL_FILES ) ); + myIncompleteCheckbox = checkBoxNew( tr( "Keep &incomplete files in:" ), Prefs::INCOMPLETE_DIR_ENABLED ); b = myIncompleteButton = new QPushButton; b->setIcon( folderPixmap ); b->setStyleSheet( "text-align: left; padding-left: 5; padding-right: 5" ); - connect( b, SIGNAL(clicked(bool)), this, SLOT(onDestinationClicked(void)) ); - hig->addRow( tr( "Keep &incomplete files in:" ), b ); + connect( b, SIGNAL(clicked(bool)), this, SLOT(onIncompleteClicked(void)) ); + hig->addRow( myIncompleteCheckbox, b ); b = myDestinationButton = new QPushButton; b->setIcon( folderPixmap ); diff --git a/qt/prefs-dialog.h b/qt/prefs-dialog.h index 661ae3ff2..80c2c97a6 100644 --- a/qt/prefs-dialog.h +++ b/qt/prefs-dialog.h @@ -96,6 +96,7 @@ class PrefsDialog: public QDialog QLabel * myPortLabel; QPushButton * myPortButton; QPushButton * myWatchButton; + QCheckBox * myIncompleteCheckbox; QPushButton * myIncompleteButton; QPushButton * myDestinationButton; QWidgetList myWebWidgets;