Modules widget: copy only copies the first selected cell
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
Research direction
Start in ui/moduleswidget.cpp at DebugModulesWidget::copy(), then compare it with the fixed DebugMemoryMapWidget::copy() implementation. Port the relevant selection handling so every selected cell is copied in visual order, with tab-separated columns and newline-separated rows.
Written by the indexing model from the issue text.
Description
Description
In the Debugger Modules sidebar widget, selecting multiple cells and copying (Ctrl+C / right-click → Copy) only copies the contents of the first selected cell. All other selected cells are ignored.
Cause
DebugModulesWidget::copy() in ui/moduleswidget.cpp only reads sel[0]:
QModelIndexList sel = selectionModel()->selectedIndexes();
if (sel.empty())
return;
auto sourceIndex = m_filter->mapToSource(sel[0]); // <-- only the first cell
...
switch (sel[0].column()) { ... }
It should iterate over all selected indexes.
Expected behavior
Copy the contents of every selected cell — grouped by row (tab-separated columns within a row, newline between rows), in visual order — matching typical table-copy behavior.
Notes
The same bug existed in the Memory Map widget (DebugMemoryMapWidget::copy()) and has been fixed there; the same fix should be ported to the Modules widget. See DebugMemoryMapWidget::copy() for the reference implementation.
- Dominant language
- C++
- Stars
- 331
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Vector35/debugger
-
bug Effort: Trivial Impact: Low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Effort: Trivial enhancement UI
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
documentation Impact: Low
Difficulty 1/5 Under an hour Newbie friendliness 76/100
All issues in Vector35/debugger
Similar issues
-
Website Doc Typo Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
autowarefoundation/autoware_universe#13413 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
automated-analysis bug memory-safety
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100