aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTayou <tayou@gmx.net>2023-06-28 18:57:10 +0200
committerTayou <tayou@gmx.net>2023-06-28 20:05:28 +0200
commit54d88e4dbf058fe32e92becb5af7eab8c1eb051c (patch)
tree0160422ca01cad11a296a220177d90172c6c6b8b
parent6b3b119db07b229e22e33313a92a0c81a530f45c (diff)
downloadPrismLauncher-54d88e4dbf058fe32e92becb5af7eab8c1eb051c.tar.gz
PrismLauncher-54d88e4dbf058fe32e92becb5af7eab8c1eb051c.tar.bz2
PrismLauncher-54d88e4dbf058fe32e92becb5af7eab8c1eb051c.zip
use QString.isEmpty()
oops Signed-off-by: Tayou <tayou@gmx.net>
-rw-r--r--launcher/ui/instanceview/VisualGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/instanceview/VisualGroup.cpp b/launcher/ui/instanceview/VisualGroup.cpp
index 9d8dd2b9..edf487f1 100644
--- a/launcher/ui/instanceview/VisualGroup.cpp
+++ b/launcher/ui/instanceview/VisualGroup.cpp
@@ -204,7 +204,7 @@ void VisualGroup::drawHeader(QPainter *painter, const QStyleOptionViewItem &opti
painter->save();
painter->setFont(font);
- painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, text != "" ? text : QObject::tr("Ungrouped"));
+ painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, !text.isEmpty() ? text : QObject::tr("Ungrouped"));
painter->restore();
}
//END: text