mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
fix playericon missing in local games (#5562)
This commit is contained in:
parent
e599c6bdac
commit
0503fe589c
1 changed files with 6 additions and 4 deletions
|
|
@ -264,11 +264,13 @@ static QString getIconType(const bool isBuddy, const QString &privLevel)
|
||||||
{
|
{
|
||||||
if (isBuddy) {
|
if (isBuddy) {
|
||||||
return "star";
|
return "star";
|
||||||
} else if (privLevel.toLower() != "none") {
|
|
||||||
return QString("pawn_%1").arg(privLevel.toLower());
|
|
||||||
} else {
|
|
||||||
return "pawn";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!privLevel.isEmpty() && privLevel.toLower() != "none") {
|
||||||
|
return QString("pawn_%1").arg(privLevel.toLower());
|
||||||
|
}
|
||||||
|
|
||||||
|
return "pawn";
|
||||||
}
|
}
|
||||||
|
|
||||||
QIcon UserLevelPixmapGenerator::generateIconDefault(int height,
|
QIcon UserLevelPixmapGenerator::generateIconDefault(int height,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue