fix Compose account selection when imap folder is selected
authorPaul <paul@claws-mail.org>
Tue, 2 Feb 2016 13:06:03 +0000 (13:06 +0000)
committerPaul <paul@claws-mail.org>
Tue, 2 Feb 2016 13:06:03 +0000 (13:06 +0000)
don't just select the imap account, ignoring default account et al

src/toolbar.c

index 0291f20bd0f440e8df460c4b0b72ee0406ac0cf3..e7a553efb3d489c1437037f530f9f2f71efa59e3 100644 (file)
@@ -2664,7 +2664,7 @@ void compose_mail_cb(gpointer data, guint action, GtkWidget *widget)
        
        if (item) {
                ac = account_find_from_item(item);
-               if (ac && ac->protocol != A_NNTP) {
+               if (ac && ac->protocol != A_NNTP && ac->protocol != A_IMAP4) {
                        compose_new_with_folderitem(ac, item, NULL);            /* CLAWS */
                        return;
                }