Commit 6ca9f6d4 authored by Stéphane Albert's avatar Stéphane Albert

ENH: Fixed OTB-app search issue.

parent d1a67026
......@@ -182,7 +182,7 @@ ApplicationsToolBox
// does the current algorithm DocName match the search text
if ( m_SearchText.isEmpty() ||
title.contains( m_SearchText, Qt::CaseInsensitive ) ||
name.contains( m_SearchText ,Qt::CaseInsensitive ) )
name.contains( m_SearchText, Qt::CaseInsensitive ) )
{
//
// set current application name as secondary item
......@@ -224,9 +224,14 @@ ApplicationsToolBox
for( StringVector::const_iterator itApps( itTag->second.begin() );
itApps != itTag->second.end();
++itApps )
if( GetApplicationDocNameByApplicationName( itApps->c_str() )
{
QString name( FromStdString( *itApps ) );
if( name.contains( m_SearchText, Qt::CaseInsensitive ) ||
GetApplicationDocNameByApplicationName( name )
.contains( m_SearchText, Qt::CaseInsensitive ) )
return true;
}
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment