From 07b7ad35990c57d36183fa0914b63e314ffe74ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Mon, 8 Feb 2010 19:30:23 +0100 Subject: [PATCH] Fixed a crash when moving messages --- src/modest-ui-actions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 6140977..62fce99 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -4737,11 +4737,13 @@ create_move_to_dialog (GtkWindow *win, ModestAccountMgr *mgr = NULL; ModestAccountSettings *settings = NULL; ModestServerAccountSettings *store_settings = NULL; + ModestWindow *modest_window; modest_folder_view_set_style (MODEST_FOLDER_VIEW (tree_view), MODEST_FOLDER_VIEW_STYLE_SHOW_ALL); - active_account_name = modest_window_get_active_account (MODEST_WINDOW (win)); + modest_window = modest_shell_peek_window (MODEST_SHELL (win)); + active_account_name = modest_window_get_active_account (modest_window); mgr = modest_runtime_get_account_mgr (); settings = modest_account_mgr_load_account_settings (mgr, active_account_name); -- 1.7.9.5