Skip to content

Commit

Permalink
Sort frame names in the manipulation widget alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 authored and Levi-Armstrong committed Dec 17, 2024
1 parent c41ae27 commit 4ccd10f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manipulation/src/manipulation_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ void ManipulationWidget::onGroupNameChanged()
QStringList wf_sl;
for (const auto& working_frame : working_frames)
wf_sl.append(working_frame.c_str());
wf_sl.sort();
data_->working_frames_model.setStringList(wf_sl);

if (!working_frames.empty())
Expand All @@ -343,6 +344,7 @@ void ManipulationWidget::onGroupNameChanged()
QStringList tcp_sl;
for (const auto& tcp_name : tcp_names)
tcp_sl.append(tcp_name.c_str());
tcp_sl.sort();
data_->tcp_names_model.setStringList(tcp_sl);

if (!tcp_names.empty())
Expand Down

0 comments on commit 4ccd10f

Please sign in to comment.