Fix ipad crash when receiving a new call while a call already exists

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-01-20 17:39:27 +01:00
parent 45475ed3c5
commit f576d18460

View file

@ -268,7 +268,14 @@
otherButtonTitles:nil];
mIncomingCallActionSheet.actionSheetStyle = UIActionSheetStyleDefault;
[mIncomingCallActionSheet showInView:self.parentViewController.view];
if ([LinphoneManager runningOnIpad]) {
if (self.modalViewController != nil)
[mIncomingCallActionSheet showInView:[self.modalViewController view]];
else
[mIncomingCallActionSheet showInView:self.parentViewController.view];
} else {
[mIncomingCallActionSheet showInView:self.parentViewController.view];
}
[mIncomingCallActionSheet release];
}