* src/widgets/modest-window-mgr.c:
* Now you can register a window more than one time, and it
handles this without problems (simply exiting the function
silently).
* src/maemo/modest-msg-edit-window.c:
* Now we don't unregister the window on setting a new draft, as
we can register it again without unregistering.
pmo-trunk-r3677
ModestWindowMgr *mgr = modest_runtime_get_window_mgr ();
if (priv->draft_msg != NULL) {
- modest_window_mgr_unregister_window (mgr, MODEST_WINDOW (window));
g_object_unref (priv->draft_msg);
}
win = g_list_find (priv->window_list, window);
if (win) {
- g_warning ("%s: trying to re-register a window",
- __FUNCTION__);
+ /* this is for the case we want to register the window and it was already
+ * registered. We leave silently.
+ */
return;
}