Skip to content

Commit

Permalink
Trigger selection change event on 'select all' in entry list
Browse files Browse the repository at this point in the history
Apparently wxDataViewCtrl::SelectAll doesn't count as a selection change...

Fixes #1724
  • Loading branch information
sirjuddington committed Dec 22, 2024
1 parent 6c411ce commit 5400e46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MainEditor/UI/ArchivePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4138,6 +4138,12 @@ void ArchivePanel::onEntryListKeyDown(wxKeyEvent& e)
else if (bind == "select_all")
{
entry_tree_->SelectAll();

// Trigger selection change event (since SelectAll doesn't trigger it)
wxDataViewEvent de;
de.SetEventType(wxEVT_DATAVIEW_SELECTION_CHANGED);
entry_tree_->ProcessWindowEvent(de);

return;
}

Expand Down

0 comments on commit 5400e46

Please sign in to comment.