aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-folder-pane.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-folder-pane.c')
-rw-r--r--mail/e-mail-folder-pane.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/e-mail-folder-pane.c b/mail/e-mail-folder-pane.c
index 6d2be33a3e..a8c2a3d971 100644
--- a/mail/e-mail-folder-pane.c
+++ b/mail/e-mail-folder-pane.c
@@ -70,6 +70,7 @@ mail_paned_view_open_selected_mail (EMailPanedView *view)
EShell *shell;
EShellBackend *shell_backend;
EMailReader *reader;
+ EMailBackend *backend;
GPtrArray *uids;
gint i;
GtkWindow *window;
@@ -79,8 +80,9 @@ mail_paned_view_open_selected_mail (EMailPanedView *view)
guint n_views, ii;
reader = E_MAIL_READER (view);
+ backend = e_mail_reader_get_backend (reader);
- shell_backend = e_mail_reader_get_shell_backend (reader);
+ shell_backend = E_SHELL_BACKEND (backend);
shell = e_shell_backend_get_shell (shell_backend);
uids = e_mail_reader_get_selected_uids (reader);