From: Sergio Villar SenĂ­n Date: Tue, 12 May 2009 08:59:13 +0000 (+0200) Subject: Fixes NB#116113, there are no standalone editors/viewers in Fremantle, always show... X-Git-Tag: 3.0.17-rc4~4 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=6d51b035c0de4047913c39cef0db7b1792df2cd2;ds=inline Fixes NB#116113, there are no standalone editors/viewers in Fremantle, always show window stacks --- diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index 406afa7..5d8d156 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -472,6 +472,12 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, return FALSE; } + /* Do not allow standalone editors or standalone viewers */ + if (!current_top && + (MODEST_IS_MSG_VIEW_WINDOW (window) || + MODEST_IS_MSG_EDIT_WINDOW (window))) + modest_window_mgr_show_initial_window (self); + if (MODEST_IS_MSG_VIEW_WINDOW (window)) { gchar *uid; TnyHeader *header;