From 8ab3b97fcdd1bebe346ea546f02d73879ea07883 Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Sat, 10 Feb 2024 12:19:53 +0100 Subject: [PATCH] [search] Don't repeat feature type if it's in the title Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- search/result.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/search/result.cpp b/search/result.cpp index ef54d37273..5411979832 100644 --- a/search/result.cpp +++ b/search/result.cpp @@ -91,7 +91,8 @@ std::string Result::GetFeatureDescription() const featureDescription += sv; }; - append(GetLocalizedTypeName(m_mainType)); + if (!m_str.empty()) + append(GetLocalizedTypeName(m_mainType)); if (m_mainType != m_featureType && m_featureType != 0) append(GetLocalizedTypeName(m_featureType));