From 526cbb566e3e1745ae06389e9ed114ea3f5b58d7 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 22 Apr 2019 18:03:13 -0500 Subject: [PATCH] Fix losing selection on reload. --- iOS/Timeline/MasterTimelineViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iOS/Timeline/MasterTimelineViewController.swift b/iOS/Timeline/MasterTimelineViewController.swift index 5599004aa..80ee25887 100644 --- a/iOS/Timeline/MasterTimelineViewController.swift +++ b/iOS/Timeline/MasterTimelineViewController.swift @@ -263,7 +263,9 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner } @objc func articlesDidChange(_ note: Notification) { - tableView.reloadData() + performBlockAndRestoreSelection { + tableView.reloadData() + } } @objc func articleSelectionDidChange(_ note: Notification) {