only a single # in the filter edit box should filter for occupied servers

This commit is contained in:
Volker Fischer 2020-08-08 08:45:09 +02:00
parent 4f4cc8db99
commit e4bdbee966

View file

@ -575,7 +575,8 @@ void CConnectDlg::UpdateListFilter()
// special case: filter for occupied servers
// DEFINITION: if "#" is set at the beginning of the filter text, we show
// occupied servers (#397)
if ( ( sFilterText.indexOf ( "#" ) == 0 ) && ( pCurListViewItem->childCount() > 0 ) )
if ( ( sFilterText.indexOf ( "#" ) == 0 ) && ( sFilterText.length() == 1 ) &&
( pCurListViewItem->childCount() > 0 ) )
{
bFilterFound = true;
}