From 970712ef0aa11ac3ddf52235da7c813253130fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 9 Apr 2016 15:43:43 +0200 Subject: [PATCH] Cleanup TDELocale warnings in kbstate applet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit bad8dd9dd09fe185e9f15788438f30e442123a7c) --- kbstateapplet/kbstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kbstateapplet/kbstate.cpp b/kbstateapplet/kbstate.cpp index 9a35c0d..e0bf552 100644 --- a/kbstateapplet/kbstate.cpp +++ b/kbstateapplet/kbstate.cpp @@ -824,8 +824,8 @@ void KeyIcon::drawButton (TQPainter *p) { black = TDEGlobalSettings::textColor(); } - TQString text = i18n(modifierKeys[keyId].text); - if (!text.isEmpty() && !text.isNull()) { + if (strcmp(modifierKeys[keyId].text, "")) { + TQString text = i18n(modifierKeys[keyId].text); TQFont font = TDEGlobalSettings::generalFont(); font.setWeight(TQFont::Black); TQFontMetrics metrics(font);