summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-04-09 15:43:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-04-09 15:43:43 +0200
commitbad8dd9dd09fe185e9f15788438f30e442123a7c (patch)
tree130d4e450859b02d05fa9f33c2ee0c1812ac63b6
parenteb90cb32db0072c1cb9f2e1da3bbb5e71e47a8fd (diff)
downloadtdeaccessibility-bad8dd9dd09fe185e9f15788438f30e442123a7c.zip
tdeaccessibility-bad8dd9dd09fe185e9f15788438f30e442123a7c.tar.gz
Cleanup TDELocale warnings in kbstate applet
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--kbstateapplet/kbstate.cpp4
1 files 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);