Commit 8cf65a00 authored by Nedko Arnaudov's avatar Nedko Arnaudov
Browse files

untabify -a option handling

parent e418ea10
......@@ -281,14 +281,14 @@ int main(int argc, char* argv[])
case 'a':
param = jackctl_get_parameter(server_parameters, "self-connect-mode");
if (param != NULL) {
bool value_valid = false;
for (int k=0; k<jackctl_parameter_get_enum_constraints_count( param ); k++ ) {
value = jackctl_parameter_get_enum_constraint_value( param, k );
if( value.c == optarg[0] )
value_valid = true;
}
if( value_valid ) {
bool value_valid = false;
for (int k=0; k<jackctl_parameter_get_enum_constraints_count( param ); k++ ) {
value = jackctl_parameter_get_enum_constraint_value( param, k );
if( value.c == optarg[0] )
value_valid = true;
}
if( value_valid ) {
value.c = optarg[0];
jackctl_parameter_set_value(param, &value);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment