From 83815c2a06140ea3e3e2be43a29f8fbe1d5c99e3 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 21 Jan 2009 15:13:21 +0000 Subject: [PATCH] Move to operation should check if we selected any folder (fixes NB#98788) pmo-trunk-r7220 --- src/modest-ui-actions.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 17984de..277b9f6 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -5748,6 +5748,7 @@ modest_ui_actions_on_edit_mode_move_to (ModestWindow *win) GtkWidget *dialog = NULL, *folder_view = NULL; ModestMainWindow *main_window; MoveToInfo *helper = NULL; + TnyList *list_to_move; g_return_val_if_fail (MODEST_IS_WINDOW (win), FALSE); @@ -5766,6 +5767,12 @@ modest_ui_actions_on_edit_mode_move_to (ModestWindow *win) else folder_view = NULL; + list_to_move = modest_platform_get_list_to_move (MODEST_WINDOW (win)); + if (tny_list_get_length (list_to_move) < 1) { + g_object_unref (list_to_move); + return FALSE; + } + /* Create and run the dialog */ dialog = create_move_to_dialog (GTK_WINDOW (win), folder_view); modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), -- 1.7.9.5