X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhildon2%2Fmodest-platform.c;h=2028960c02b4e80741a353dc324fa400d2aa8bdc;hb=2dd768c41084634bf9d0ba7b9efd51c934264ded;hp=fa5f8d43e54153e3d67a1be716e5137f469060f9;hpb=28b1f57e5e10760c65eeb17d3561a3e9c3679ba3;p=modest diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index fa5f8d4..2028960 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -2671,19 +2671,22 @@ static void on_move_to_dialog_selection_changed (GtkTreeSelection *selection, gpointer user_data) { - TnyFolderStore *selected; - GtkWidget *dialog; - GtkWidget *folder_view; gboolean showing_folders; + GtkWidget *dialog; dialog = (GtkWidget *) user_data; showing_folders = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (dialog), MOVE_TO_DIALOG_SHOWING_FOLDERS)); if (showing_folders) { + TnyFolderStore *selected; + GtkWidget *folder_view; + folder_view = GTK_WIDGET (g_object_get_data (G_OBJECT (dialog), MOVE_TO_DIALOG_FOLDER_VIEW)); selected = modest_folder_view_get_selected (MODEST_FOLDER_VIEW (folder_view)); - if (selected) + if (selected) { move_to_dialog_set_selected_folder (dialog, selected); + g_object_unref (selected); + } } }