From 3a3205bd86051c966be95abb056f864d844ddcf9 Mon Sep 17 00:00:00 2001 From: panxi Date: Wed, 25 Sep 2019 11:19:30 -0400 Subject: [PATCH] if pop to current view controller, stop pop method --- .../MVMCore/PresentationHandling/MVMCoreNavigationOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m index 9018f9e..d38b78c 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m +++ b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m @@ -177,7 +177,7 @@ } } - if (self.navigationObject.viewController) { + if (self.navigationObject.viewController && (self.navigationObject.viewController != [[self.navigationObject.navigationController viewControllers] lastObject])) { [self.navigationObject.navigationController popToViewController:self.navigationObject.viewController animated:self.navigationObject.animated]; } else { [self markAsFinished];