From f3e1c17261ee893972d8b4d62fb160476fad24de Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 19 Jan 2011 20:33:43 +0000 Subject: [PATCH] (trunk qt) #3917 "Text on QPushButton is not updated after selecting 'Torrent Done' script" -- fixed. patch by cantabile. --- qt/prefs-dialog.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qt/prefs-dialog.cc b/qt/prefs-dialog.cc index 3968d1db5..0dcddc925 100644 --- a/qt/prefs-dialog.cc +++ b/qt/prefs-dialog.cc @@ -619,7 +619,8 @@ PrefsDialog :: PrefsDialog( Session& session, Prefs& prefs, QWidget * parent ): << Prefs :: DIR_WATCH << Prefs :: DOWNLOAD_DIR << Prefs :: INCOMPLETE_DIR - << Prefs :: INCOMPLETE_DIR_ENABLED; + << Prefs :: INCOMPLETE_DIR_ENABLED + << Prefs :: SCRIPT_TORRENT_DONE_FILENAME; foreach( int key, keys ) refreshPref( key ); @@ -694,6 +695,12 @@ PrefsDialog :: refreshPref( int key ) myWatchButton->setText( QFileInfo(myPrefs.getString(Prefs::DIR_WATCH)).fileName() ); break; + case Prefs :: SCRIPT_TORRENT_DONE_FILENAME: { + const QString path( myPrefs.getString( key ) ); + myTorrentDoneScriptButton->setText( QFileInfo(path).fileName() ); + break; + } + case Prefs :: PEER_PORT: myPortLabel->setText( tr( "Status unknown" ) ); myPortButton->setEnabled( true );