aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-26 07:32:08 +0200
committerMontel Laurent <[email protected]>2017-06-26 07:32:08 +0200
commit4ca32b4d22b31dfef4fcf33dce0534ebd6216ec9 (patch)
treee42a2232174df9cc6e31ddb9343863f72ac29f31
parent915970c1aa0f427dd35edecab0b4a3fdde4eb357 (diff)
Use isEmpty
-rw-r--r--src/titler/unicodedialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/titler/unicodedialog.cpp b/src/titler/unicodedialog.cpp
index 80f8981..a9cfccb 100644
--- a/src/titler/unicodedialog.cpp
+++ b/src/titler/unicodedialog.cpp
@@ -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;
}