Changeset 11715


Ignore:
Timestamp:
Jan 19, 2011, 8:33:43 PM (11 years ago)
Author:
jordan
Message:

(trunk qt) #3917 "Text on QPushButton is not updated after selecting 'Torrent Done' script" -- fixed. patch by cantabile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/prefs-dialog.cc

    r11667 r11715  
    620620         << Prefs :: DOWNLOAD_DIR
    621621         << Prefs :: INCOMPLETE_DIR
    622          << Prefs :: INCOMPLETE_DIR_ENABLED;
     622         << Prefs :: INCOMPLETE_DIR_ENABLED
     623         << Prefs :: SCRIPT_TORRENT_DONE_FILENAME;
    623624    foreach( int key, keys )
    624625        refreshPref( key );
     
    695696            break;
    696697
     698        case Prefs :: SCRIPT_TORRENT_DONE_FILENAME: {
     699            const QString path( myPrefs.getString( key ) );
     700            myTorrentDoneScriptButton->setText( QFileInfo(path).fileName() );
     701            break;
     702        }
     703
    697704        case Prefs :: PEER_PORT:
    698705            myPortLabel->setText( tr( "Status unknown" ) );
Note: See TracChangeset for help on using the changeset viewer.