Skip to content

Commit

Permalink
raised nickname display limit to 13 chars, fixed length when ... is a…
Browse files Browse the repository at this point in the history
…ppended
  • Loading branch information
supinf0 committed Aug 5, 2017
1 parent 0b4d0e3 commit 17ec002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qt/gametable/mynamelabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ void MyNameLabel::setText ( const QString &t, bool trans, bool guest, bool compu
linkString = QString("http://pokerth.net/redirect_user_profile.php?nick="+QUrl::toPercentEncoding(t));
}

// truncate nicknames longer than 10 characters
// truncate nicknames longer than 13 characters
QString t2 = t;
if(t2.size() > 10){
int chop = t.size() - 10 - 3;
if(t2.size() > 13){
int chop = t.size() - 13 + 3;
t2.chop(chop);
t2.append("...");
}
Expand Down

0 comments on commit 17ec002

Please sign in to comment.