]> granicus.if.org Git - transmission/commitdiff
(qt) when changing the session's download dir, call session-get to update the freespa...
authorJordan Lee <jordan@transmissionbt.com>
Sun, 27 Jan 2013 21:02:04 +0000 (21:02 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 27 Jan 2013 21:02:04 +0000 (21:02 +0000)
qt/session.cc

index 13053e7ee70004076e311a5a0d86a53a53373f65..574399fc45257396f446220918bae37d55741729 100644 (file)
@@ -150,7 +150,6 @@ Session :: updatePref( int key )
         case Prefs :: BLOCKLIST_ENABLED:
         case Prefs :: BLOCKLIST_URL:
         case Prefs :: DHT_ENABLED:
-        case Prefs :: DOWNLOAD_DIR:
         case Prefs :: DOWNLOAD_QUEUE_ENABLED:
         case Prefs :: DOWNLOAD_QUEUE_SIZE:
         case Prefs :: DSPEED:
@@ -178,6 +177,12 @@ Session :: updatePref( int key )
             sessionSet( myPrefs.getKey(key), myPrefs.variant(key) );
             break;
 
+        case Prefs :: DOWNLOAD_DIR:
+            sessionSet (myPrefs.getKey(key), myPrefs.variant(key));
+            /* this will change the 'freespace' argument, so refresh */
+            refreshSessionInfo ();
+            break;
+
         case Prefs :: RATIO:
             sessionSet( TR_KEY_seedRatioLimit, myPrefs.variant(key) );
             break;