Skip to content

Commit

Permalink
use QString.isEmpty()
Browse files Browse the repository at this point in the history
oops
Signed-off-by: Tayou <tayou@gmx.net>
  • Loading branch information
Tayou committed Jun 28, 2023
1 parent 6b3b119 commit 54d88e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launcher/ui/instanceview/VisualGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54d88e4

Please sign in to comment.