From be01db62b703fbd9f048c2fcdd68c7bf87a40b2f Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Tue, 23 Apr 2024 14:39:22 +0200 Subject: [PATCH] Don't crash on iPad when logging out of all accounts (IOS-245) --- Mastodon/Scene/Account/AccountViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Mastodon/Scene/Account/AccountViewController.swift b/Mastodon/Scene/Account/AccountViewController.swift index e602e3956..f618b4c3c 100644 --- a/Mastodon/Scene/Account/AccountViewController.swift +++ b/Mastodon/Scene/Account/AccountViewController.swift @@ -167,6 +167,7 @@ extension AccountListViewController: UITableViewDelegate { } alert.addAction(logoutAction) + alert.popoverPresentationController?.sourceView = tableView.cellForRow(at: indexPath) let cancelAction = UIAlertAction(title: L10n.Common.Controls.Actions.cancel, style: .default) alert.addAction(cancelAction)