Skip to content
Snippets Groups Projects
Commit fbd1f4f2 authored by cramakri's avatar cramakri
Browse files

Fixed bug in selecting an element with children

SVN: 27179
parent 3c41b403
No related branches found
No related tags found
No related merge requests found
...@@ -126,8 +126,11 @@ ...@@ -126,8 +126,11 @@
{ {
// Segue to the detail view unless we are on the ipad // Segue to the detail view unless we are on the ipad
if ([[UIDevice currentDevice] userInterfaceIdiom] != UIUserInterfaceIdiomPad) return; if ([[UIDevice currentDevice] userInterfaceIdiom] != UIUserInterfaceIdiomPad) return;
[self.openBisModel selectObjectAtIndexPath: indexPath]; [self.openBisModel selectObjectAtIndexPath: indexPath];
// Figure out what to do with the detail view and the navigation view
self.detailViewController.openBisModel = self.openBisModel;
if ([self.openBisModel selectionHasChildren]) { if ([self.openBisModel selectionHasChildren]) {
// Drill into the hierarchy // Drill into the hierarchy
UIStoryboard *storyboard = self.storyboard; UIStoryboard *storyboard = self.storyboard;
...@@ -137,7 +140,6 @@ ...@@ -137,7 +140,6 @@
[self.detailViewController selectionIsChanging]; [self.detailViewController selectionIsChanging];
} else { } else {
// Show the current selection // Show the current selection
self.detailViewController.openBisModel = self.openBisModel;
[self.detailViewController selectionDidChange]; [self.detailViewController selectionDidChange];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment