From 64c1bcdbd70de338c426700b44dcd8a85b35ae2d Mon Sep 17 00:00:00 2001 From: Michael Ripperger Date: Tue, 17 Dec 2024 09:00:35 -0600 Subject: [PATCH] Sort frame names in the manipulation widget alphabetically --- manipulation/src/manipulation_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manipulation/src/manipulation_widget.cpp b/manipulation/src/manipulation_widget.cpp index f707bc2..b2b335d 100644 --- a/manipulation/src/manipulation_widget.cpp +++ b/manipulation/src/manipulation_widget.cpp @@ -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()) @@ -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())