project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 3791 98072b3871c1
parent 3789 c3eb56754e92
child 3792 dd9345e74b66
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Mon Aug 30 01:43:21 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Mon Aug 30 05:42:03 2010 +0200
@@ -464,7 +464,7 @@
             // dummy value, everything is set by -updatePreview -> -didSelectRowAtIndexPath -> -updatePreviewWithMap
             staticmap = @"map Bamboo";
             self.slider.enabled = NO;
-            self.sizeLabel.text = @"";
+            self.sizeLabel.text = NSLocalizedString(@"No filter",@"");
             [self restoreBackgroundImage];
             break;
 
@@ -538,6 +538,10 @@
 
     // select a map at first because it's faster - done in IB
     //self.segmentedControl.selectedSegmentIndex = 1;
+    if (self.segmentedControl.selectedSegmentIndex == 1) {
+        self.slider.enabled = NO;
+        self.sizeLabel.text = NSLocalizedString(@"No filter",@"");
+    }
 
     self.templateFilterCommand = @"e$template_filter 0";
     self.mazeSizeCommand = @"e$maze_size 0";
@@ -574,6 +578,7 @@
 -(void) didReceiveMemoryWarning {
     [super didReceiveMemoryWarning];
     //[previewButton setImage:nil forState:UIControlStateNormal];
+    MSG_MEMCLEAN();
 }
 
 -(void) viewDidUnload {