Commit 4ca32b4d authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty

parent 915970c1
......@@ -141,7 +141,7 @@ QString UnicodeWidget::trimmedUnicodeNumber(QString text)
QString UnicodeWidget::unicodeInfo(const QString &unicode)
{
QString infoText(i18n("<small>(no character selected)</small>"));
if (unicode.length() == 0) {
if (unicode.isEmpty()) {
return infoText;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment