summaryrefslogtreecommitdiff
path: root/data/mobileterminal/iphoneos-2.2.diff
blob: 6e546a52294657eed1f69809b593342c614bceb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -ru mobileterminal-316s/Sources/MobileTerminal.m mobileterminal-316s+iPhone/Sources/MobileTerminal.m
--- mobileterminal-316s/Sources/MobileTerminal.m	2008-08-26 11:46:29.000000000 +0000
+++ mobileterminal-316s+iPhone/Sources/MobileTerminal.m	2008-11-22 09:39:43.000000000 +0000
@@ -503,8 +503,13 @@
 
     activeTerminal = active;
 
-    if (numTerminals > 1) [self addStatusBarImageNamed:[NSString stringWithFormat:@"MobileTerminal%d", activeTerminal]
-                                    removeOnAbnormalExit:YES];
+    if (numTerminals > 1) {
+        NSString *name = [NSString stringWithFormat:@"MobileTerminal%d", activeTerminal];
+        if ([self respondsToSelector:@selector(addStatusBarImageNamed:removeOnExit:)])
+            [self addStatusBarImageNamed:name removeOnExit:YES];
+        else
+            [self addStatusBarImageNamed:name removeOnAbnormalExit:YES];
+    }
 
     [mainView insertSubview:[self textScroller] below:keyboardView];