Application.Client: Fix blank composers being opened with wrong account
Fixes #936
This commit is contained in:
parent
b0b54d57e0
commit
23f960f861
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue