Skip to content

Commit

Permalink
Merge pull request #7704 from AngelkPetkov/TIMOB-20355_5_2_X
Browse files Browse the repository at this point in the history
[TIMOB-20355](5_2_X) iOS: Resolve error log when closing app
  • Loading branch information
pec1985 committed Feb 10, 2016
2 parents 18277cb + 2ddae0f commit b5cef90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/TiUIiOSNavWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ -(void)closeWindow:(NSArray*)args
{
TiWindowProxy *window = [args objectAtIndex:0];
ENSURE_TYPE(window,TiWindowProxy);
if (window == rootWindow) {
if (window == rootWindow && ![[TiApp app] willTerminate]) {
DebugLog(@"[ERROR] Can not close root window of the navWindow. Close this window instead");
return;
}
Expand Down

0 comments on commit b5cef90

Please sign in to comment.