Skip to content

Commit

Permalink
[mc_rtc_rviz_panel] change the condition of default value proviated.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Jul 29, 2021
1 parent 7338817 commit 956ef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mc_rtc_rviz_panel/src/FormElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ ComboInput::ComboInput(QWidget * parent,
void ComboInput::reset()
{
combo_->setCurrentIndex(def_);
ready_ = (def_ != -1);
ready_ = (def_ >= 0);
}

bool ComboInput::changed(bool required, const std::vector<std::string> & values, bool send_index, int def)
Expand Down

0 comments on commit 956ef98

Please sign in to comment.