diff --git a/contrib/mobile/iOS/Onelab/ParametersViewController.mm b/contrib/mobile/iOS/Onelab/ParametersViewController.mm index 0070d2794507e8127be9e5de6c765a588a3f5896..555d0861dde90f7bf3d342ce2e42ba5a8a02f3f3 100644 --- a/contrib/mobile/iOS/Onelab/ParametersViewController.mm +++ b/contrib/mobile/iOS/Onelab/ParametersViewController.mm @@ -112,11 +112,11 @@ ParameterNumberStepper *param = [[ParameterNumberStepper alloc] initWithNumber:p]; [section addObject:param]; } - else if(p.getMin() == p.getMax() || p.getReadOnly()) { // text box, since no range + else if(p.getMin() == p.getMax() || p.getReadOnly()) { // text box ParameterNumberTextbox *param = [[ParameterNumberTextbox alloc] initWithNumber:p]; [section addObject:param]; } - else { + else { // slider ParameterNumberRange *param = [[ParameterNumberRange alloc] initWithNumber:p]; [section addObject:param]; }