project_files/HedgewarsMobile/Classes/MasterViewController.m
changeset 3996 eb549fd864a5
parent 3971 5c82ee165ed5
child 4115 222b8016c773
--- a/project_files/HedgewarsMobile/Classes/MasterViewController.m	Mon Oct 25 17:39:50 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MasterViewController.m	Mon Oct 25 22:19:00 2010 +0200
@@ -52,7 +52,7 @@
     [array release];
 
     // targetControllers tells whether we're on the right or left side of the splitview -- on iphone we only use the right side
-    if (targetController == nil && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
+    if (targetController == nil && IS_IPAD()) {
         if (nil == generalSettingsViewController)
             generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
         generalSettingsViewController.navigationItem.hidesBackButton = YES;