summaryrefslogtreecommitdiff
path: root/extra/transmission/0001-gtk-conf-set-correct-download-dir-default.patch
blob: 3b0a38400fd967ee482fd29b3a8650e6eff61a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 4028320ba2e8c181292e02171d83ebf6ce3aee5a Mon Sep 17 00:00:00 2001
From: Felipe Contreras <felipe.contreras@gmail.com>
Date: Thu, 29 Dec 2011 03:28:27 +0200
Subject: [PATCH] gtk: conf: set correct download dir default

Otherwise people might get:
ERROR:open-dialog.c:285:gtr_torrent_options_dialog_new: code should not be reached

It was fixed at some point in ticket #1873, but somebody broket it
again.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 gtk/conf.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/gtk/conf.c b/gtk/conf.c
index 623b839..6ad6ca2 100644
--- a/gtk/conf.c
+++ b/gtk/conf.c
@@ -108,7 +108,6 @@ tr_prefs_init_defaults( tr_benc * d )
     tr_bencDictAddInt( d, PREF_KEY_MAIN_WINDOW_X, 50 );
     tr_bencDictAddInt( d, PREF_KEY_MAIN_WINDOW_Y, 50 );
 
-    str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD );
     tr_bencDictAddStr( d, TR_PREFS_KEY_DOWNLOAD_DIR, str );
 
     tr_bencDictAddStr( d, PREF_KEY_SORT_MODE, "sort-by-name" );
-- 
1.7.8.1