From e4bdbee96640067531f97649ba6886ffc8c8f114 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 8 Aug 2020 08:45:09 +0200 Subject: [PATCH] only a single # in the filter edit box should filter for occupied servers --- src/connectdlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index a39144c9..4fa91828 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -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; }