From 655e11f804891bf1a39d10bda49b7d3b2e2037be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Dapena=20Paz?= Date: Thu, 18 Feb 2010 10:13:45 +0100 Subject: [PATCH] Set the active account on creating folder window from mailboxes window, to avoid a crash caused by a bad rule in new window manager for hildon2 Fixes NB#157399. --- src/hildon2/modest-mailboxes-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hildon2/modest-mailboxes-window.c b/src/hildon2/modest-mailboxes-window.c index 4f2ef17..d3a8d67 100644 --- a/src/hildon2/modest-mailboxes-window.c +++ b/src/hildon2/modest-mailboxes-window.c @@ -451,6 +451,8 @@ on_mailbox_activated (ModestFolderView *mailboxes_view, return; new_window = GTK_WIDGET (modest_folder_window_new (NULL)); + active_account = modest_window_get_active_account (MODEST_WINDOW (self)); + modest_window_set_active_account (MODEST_WINDOW (self), active_account); registered = modest_window_mgr_register_window (modest_runtime_get_window_mgr (), MODEST_WINDOW (new_window), MODEST_WINDOW (self)); -- 1.7.9.5