projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eedfafb
)
Move to operation should check if we selected any folder (fixes NB#98788)
author
Jose Dapena Paz
<jdapena@igalia.com>
Wed, 21 Jan 2009 15:13:21 +0000
(15:13 +0000)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Wed, 21 Jan 2009 15:13:21 +0000
(15:13 +0000)
pmo-trunk-r7220
src/modest-ui-actions.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-actions.c
b/src/modest-ui-actions.c
index
17984de
..
277b9f6
100644
(file)
--- 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;
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);
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;
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 (),
/* 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 (),