Application.Client: Fix blank composers being opened with wrong account

Fixes #936
This commit is contained in:
Michael Gratton 2020-08-23 17:44:15 +10:00
parent b0b54d57e0
commit 23f960f861

View file

@ -708,7 +708,7 @@ public class Application.Client : Gtk.Application {
public async void new_composer(Geary.RFC822.MailboxAddress? to = null) {
MainWindow main = yield this.present();
AccountContext? account = null;
if (main.selected_account == null) {
if (main.selected_account != null) {
account = this.controller.get_context_for_account(
main.selected_account.information
);