From: Jose Dapena Paz Date: Thu, 2 Apr 2009 20:57:35 +0000 (+0000) Subject: Another fix for modified editor detection X-Git-Tag: git_migration_finished~145 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=0cb4e32930efa9e10ae5f1fbf192132ea28e11f5 Another fix for modified editor detection pmo-trunk-r8572 --- diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 1a055ca..17e5b66 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -3288,10 +3288,10 @@ modest_msg_edit_window_is_modified (ModestMsgEditWindow *editor) return TRUE; account_name = modest_selector_picker_get_active_id (MODEST_SELECTOR_PICKER (priv->from_field)); - if ((priv->original_mailbox) && - (!account_name || strcmp (account_name, priv->original_mailbox))) - return TRUE; - if (!priv->original_account_name || strcmp(account_name, priv->original_account_name)) { + if (priv->original_mailbox) { + if (!account_name || strcmp (account_name, priv->original_mailbox)) + return TRUE; + } else if (!priv->original_account_name || strcmp(account_name, priv->original_account_name)) { return TRUE; }