mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +00:00
segfault when opening prefs dialog in gtk+ 3.8.0
This commit is contained in:
parent
4e079b5f88
commit
0abb762ed5
1 changed files with 1 additions and 3 deletions
|
@ -239,11 +239,9 @@ new_path_chooser_button (const tr_quark key, gpointer core)
|
|||
GtkWidget * w = gtk_file_chooser_button_new (NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
|
||||
const char * path = gtr_pref_string_get (key);
|
||||
g_object_set_data (G_OBJECT (w), PREF_KEY, GINT_TO_POINTER(key));
|
||||
g_signal_connect (w, "selection-changed", G_CALLBACK (chosen_cb), core);
|
||||
|
||||
if (path != NULL)
|
||||
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (w), path);
|
||||
|
||||
g_signal_connect (w, "selection-changed", G_CALLBACK (chosen_cb), core);
|
||||
return w;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue