Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
- Client: Added Conductor to list of instruments (#2140).
(contributed by @henkdegroot)

- Client: Fix wrong display of Unicode characters at line wrap (#1994).
(contributed by @djfun, @pljones)
- Client: Fix wrong display of Unicode characters at line wrap and settings screen (#1994, #2274).
(contributed by @djfun, @pljones, @hoffie)

- Client: Fixed incorrect operation of feedback detection on first connect in run (#2120).
(contributed by @softins)
Expand Down
2 changes: 1 addition & 1 deletion src/clientsettingsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ void CClientSettingsDlg::OnAliasTextChanged ( const QString& strNewName )
else
{
// text is too long, update control with shortened text
pedtAlias->setText ( strNewName.left ( MAX_LEN_FADER_TAG ) );
pedtAlias->setText ( TruncateString ( strNewName, MAX_LEN_FADER_TAG ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ void CLanguageComboBox::OnLanguageActivated ( int iLanguageIdx )
}
}

static inline QString TruncateString ( QString str, int position )
QString TruncateString ( QString str, int position )
{
QTextBoundaryFinder tbfString ( QTextBoundaryFinder::Grapheme, str );

Expand Down
3 changes: 3 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ inline int CalcBitRateBitsPerSecFromCodedBytes ( const int iCeltNumCodedBytes, c

QString GetVersionAndNameStr ( const bool bDisplayInGui = true );
QString MakeClientNameTitle ( QString win, QString client );
#ifndef HEADLESS
QString TruncateString ( QString str, int position );
#endif

/******************************************************************************\
* CVector Base Class *
Expand Down