From 09c9bcb046ef5eacecde7e7e1affbf9a172b816e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 25 Jan 2025 23:16:44 +0100 Subject: [PATCH] fix: Pattern data filter not working correctly without a compare value --- plugins/ui/source/ui/pattern_drawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/pattern_drawer.cpp b/plugins/ui/source/ui/pattern_drawer.cpp index 49cd477f4..6280114df 100644 --- a/plugins/ui/source/ui/pattern_drawer.cpp +++ b/plugins/ui/source/ui/pattern_drawer.cpp @@ -256,7 +256,7 @@ namespace hex::ui { return; if (matchesFilter(m_filter.path, treePath, false)) { - if (pattern.getValue() == m_filter.value) + if (!m_filter.value.has_value() || pattern.getValue() == m_filter.value) m_filteredPatterns.push_back(&pattern); } });