From 8a7360e0ded3481464eeb6f164129fbc6f903620 Mon Sep 17 00:00:00 2001 From: Scott Brogden Date: Fri, 6 Jan 2023 16:33:01 -0700 Subject: [PATCH] Fixed issue with maintaining focus when moving the selection up and down on multiple clips --- QPasteWnd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QPasteWnd.cpp b/QPasteWnd.cpp index 1d428ff..605b309 100644 --- a/QPasteWnd.cpp +++ b/QPasteWnd.cpp @@ -6538,6 +6538,10 @@ bool CQPasteWnd::SelectIds(ARRAY &ids) int row = 0; bool found = false; std::vector::iterator iter = m_listItems.begin(); + + //sort so .Find works + ids.SortAscending(); + while (iter != m_listItems.end()) { if (ids.Find(iter->m_lID))