bug fix: --showallservers ping column sort is alphabetic (#201)

This commit is contained in:
Volker Fischer 2020-07-22 18:07:37 +02:00
parent edc6e63d2c
commit 1fd3cc977f
2 changed files with 5 additions and 1 deletions

View file

@ -11,8 +11,10 @@
- improve compact skin by using smaller font size if the name is too long
- bug fix: --showallservers ping column sort is alphabetic (#201)
TODO If network configuration of client changes (e.g. Wifi to LAN) we may get audio issues for a period of time #426

View file

@ -756,8 +756,10 @@ void CConnectDlg::SetPingTimeAndNumClientsResult ( const CHostAddress& InetAddr,
}
else
{
// prepend spaces so that we can sort correctly (fieldWidth of
// 4 is sufficient since the maximum width is ">500") (#201)
pCurListViewItem->
setText ( 1, QString().setNum ( iMinPingTime ) + " ms" );
setText ( 1, QString ( "%1 ms" ).arg ( iMinPingTime, 4, 10, QLatin1Char ( ' ' ) ) );
}
// update number of clients text