summaryrefslogtreecommitdiff
path: root/data/mobileterminal/iphoneos-2.2.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/mobileterminal/iphoneos-2.2.diff')
-rw-r--r--data/mobileterminal/iphoneos-2.2.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/mobileterminal/iphoneos-2.2.diff b/data/mobileterminal/iphoneos-2.2.diff
new file mode 100644
index 000000000..6e546a522
--- /dev/null
+++ b/data/mobileterminal/iphoneos-2.2.diff
@@ -0,0 +1,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];
+