From: Sergio Villar SenĂ­n Date: Mon, 8 Feb 2010 18:30:23 +0000 (+0100) Subject: Fixed a crash when moving messages X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=07b7ad35990c57d36183fa0914b63e314ffe74ac;ds=sidebyside Fixed a crash when moving messages --- 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);