From 0abb762ed5e4b116b584cb14eda16a7ac2c82b33 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 10 Apr 2013 02:12:19 +0000 Subject: [PATCH] segfault when opening prefs dialog in gtk+ 3.8.0 --- gtk/tr-prefs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/tr-prefs.c b/gtk/tr-prefs.c index 92fdd2e0a..159ccc123 100644 --- a/gtk/tr-prefs.c +++ b/gtk/tr-prefs.c @@ -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; }