X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-email-clipboard.c;h=5c898cade661721f3e8b7336ce9c5a0175e49f38;hp=e3b489a650187d27b74a2a9010961135c3811c5d;hb=0c949480fea81657bb216fc5447c4f44e7b373b2;hpb=fc7e53f8501d897fdf0c34e276427fec3920f547 diff --git a/src/modest-email-clipboard.c b/src/modest-email-clipboard.c index e3b489a..5c898ca 100644 --- a/src/modest-email-clipboard.c +++ b/src/modest-email-clipboard.c @@ -281,6 +281,10 @@ modest_email_clipboard_check_source_folder (ModestEmailClipboard *self, id2 = tny_folder_get_id (TNY_FOLDER(folder)); folder_type1 = modest_tny_folder_guess_folder_type (priv->src); folder_type2 = modest_tny_folder_guess_folder_type (folder); + + if (folder_type1 == TNY_FOLDER_TYPE_INVALID || folder_type2 == TNY_FOLDER_TYPE_INVALID) + g_warning ("%s: BUG: folder of type TNY_FOLDER_TYPE_INVALID", __FUNCTION__); + same_folder = ((folder_type1 == folder_type2) && (!g_ascii_strcasecmp (id1, id2)));