From: Jose Dapena Paz Date: Tue, 31 Mar 2009 07:12:23 +0000 (+0000) Subject: Don't destroy window on "save to drafts" shortcut, and also don't spoil X-Git-Tag: git_migration_finished~177 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=f73d7a9711a405b374681c16c7ca4f78fed057cc Don't destroy window on "save to drafts" shortcut, and also don't spoil the window mgr list (fixes NB#108704) pmo-trunk-r8478 --- diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 03d0aec..98ae7a7 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -3591,7 +3591,6 @@ modest_msg_edit_window_set_draft (ModestMsgEditWindow *window, g_return_if_fail ((draft == NULL)||(TNY_IS_MSG (draft))); priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (window); - ModestWindowMgr *mgr = modest_runtime_get_window_mgr (); if (priv->draft_msg != NULL) { g_object_unref (priv->draft_msg); @@ -3605,12 +3604,6 @@ modest_msg_edit_window_set_draft (ModestMsgEditWindow *window, priv->msg_uid = NULL; } priv->msg_uid = modest_tny_folder_get_header_unique_id (header); - if (GTK_WIDGET_REALIZED (window)) { - if (!modest_window_mgr_register_window (mgr, MODEST_WINDOW (window), NULL)) { - gtk_widget_destroy (GTK_WIDGET (window)); - return; - } - } } priv->draft_msg = draft;