From ab1dc1b3ba4cce195a9de538a284009621320c05 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 1 Jul 2009 23:40:07 +0000 Subject: [PATCH] (trunk qt) #2260: Qt client crashes when setting alternative upload/download speeds --- qt/mainwin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/mainwin.cc b/qt/mainwin.cc index 70952a513..9e2c0cf31 100644 --- a/qt/mainwin.cc +++ b/qt/mainwin.cc @@ -1005,7 +1005,7 @@ TrMainWindow :: refreshPref( int key ) case Prefs :: ALT_SPEED_LIMIT_ENABLED: case Prefs :: ALT_SPEED_LIMIT_UP: case Prefs :: ALT_SPEED_LIMIT_DOWN: { - b = myPrefs.getBool( key ); + b = myPrefs.getBool( Prefs :: ALT_SPEED_LIMIT_ENABLED ); myAltSpeedButton->setChecked( b ); myAltSpeedButton->setIcon( b ? mySpeedModeOnIcon : mySpeedModeOffIcon ); const QString fmt = b ? tr( "Click to disable Temporary Speed Limits\n(%1 down, %2 up)" )