From 4b361300f4eba5e6e9087a4809d4e498037ddc15 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 26 Dec 2019 12:35:39 -0700 Subject: [PATCH] Fix the OPML export when there is only one exportable account. Issue #1457 --- iOS/Settings/SettingsViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 840680bc9..b7583a445 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -380,6 +380,7 @@ private extension SettingsViewController { func exportOPML(sourceView: UIView, sourceRect: CGRect) { if AccountManager.shared.accounts.count == 1 { + opmlAccount = AccountManager.shared.accounts.first! exportOPMLDocumentPicker() } else { exportOPMLAccountPicker(sourceView: sourceView, sourceRect: sourceRect)