Skip to content

Commit

Permalink
Merge pull request karelia#97 from danielpunkass/protect-against-non-…
Browse files Browse the repository at this point in the history
…existing-media

In the event a media type exists in an app today, and is removed from…
  • Loading branch information
iljaiwas authored Apr 11, 2018
2 parents 6b97844 + f2e13b1 commit 0c9724b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IMBPanelController.m
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,14 @@ - (void) restoreStateFromPreferences
[self tabView:ibTabView willSelectTabViewItem:tabViewItem];
[self tabView:ibTabView didSelectTabViewItem:tabViewItem];
}
else
else if ([ibTabView indexOfTabViewItemWithIdentifier:mediaType] != NSNotFound)
{
[ibTabView selectTabViewItemWithIdentifier:mediaType];
}
else
{
[ibTabView selectFirstTabViewItem:nil];
}
}
}

Expand Down

0 comments on commit 0c9724b

Please sign in to comment.