diff --git a/profiler_gui/descriptors_tree_widget.cpp b/profiler_gui/descriptors_tree_widget.cpp index 98f0c76..ce60e76 100644 --- a/profiler_gui/descriptors_tree_widget.cpp +++ b/profiler_gui/descriptors_tree_widget.cpp @@ -693,6 +693,7 @@ int EasyDescTreeWidget::findPrev(const QString& _str, Qt::MatchFlags _flags) m_lastSearch = _str; m_lastFound = !itemsList.empty() ? itemsList.front() : nullptr; + m_highlightItems.reserve(itemsList.size()); for (auto item : itemsList) { m_highlightItems.push_back(item);