MasterTabBarController: Clean code.

This commit is contained in:
SBiOSoftWhare
2021-10-05 16:24:58 +02:00
parent 8eec819890
commit 8caf7b922d
6 changed files with 19 additions and 12 deletions
@@ -292,7 +292,7 @@
// Update here the index of the current selected cell (if any) - Useful in landscape mode with split view controller.
NSIndexPath *currentSelectedCellIndexPath = nil;
MasterTabBarController *masterTabBarController = [AppDelegate theDelegate].masterTabBarController;
if (masterTabBarController.currentContactDetailViewController)
if (masterTabBarController.selectedContact)
{
// Look for the rank of this selected contact in displayed recents
currentSelectedCellIndexPath = [contactsDataSource cellIndexPathWithContact:masterTabBarController.selectedContact];