diff options
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r-- | mail/em-folder-browser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index e09277a09a..38eece3e5d 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -489,10 +489,10 @@ emfb_edit_cut(BonoboUIComponent *uid, void *data, const char *path) if (GTK_WIDGET_HAS_FOCUS(((ESearchBar *)emfb->search)->entry)) gtk_editable_cut_clipboard((GtkEditable *)((ESearchBar *)emfb->search)->entry); - else if (message_list_has_primary_selection(emfb->view.list)) - message_list_copy(emfb->view.list, TRUE); - else if (emfb->view.preview_active) + else if (GTK_WIDGET_HAS_FOCUS(emfb->view.preview->formathtml.html)) em_format_html_display_cut(emfb->view.preview); + else + message_list_copy(emfb->view.list, TRUE); } static void @@ -502,10 +502,10 @@ emfb_edit_copy(BonoboUIComponent *uid, void *data, const char *path) if (GTK_WIDGET_HAS_FOCUS(((ESearchBar *)emfb->search)->entry)) gtk_editable_copy_clipboard((GtkEditable *)((ESearchBar *)emfb->search)->entry); - else if (message_list_has_primary_selection(emfb->view.list)) - message_list_copy(emfb->view.list, FALSE); - else if (emfb->view.preview_active) + else if (GTK_WIDGET_HAS_FOCUS(emfb->view.preview->formathtml.html)) em_format_html_display_copy(emfb->view.preview); + else + message_list_copy(emfb->view.list, FALSE); } static void |