| 80 | } |
| 81 | |
| 82 | void cmCursesOptionsWidget::SetOption(std::string const& value) |
| 83 | { |
| 84 | this->CurrentOption = 0; // default to 0 index |
| 85 | this->SetValue(value); |
| 86 | int index = 0; |
| 87 | for (auto const& opt : this->Options) { |
| 88 | if (opt == value) { |
| 89 | this->CurrentOption = index; |
| 90 | } |
| 91 | index++; |
| 92 | } |
| 93 | } |
no test coverage detected