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:55 +0200
commit970712ef0aa11ac3ddf52235da7c813253130fa0 (patch)
tree1a610b518f5984ab3f11febaa6b0a19f52e26852
parentd51463e55845162795893c045c59770ee9b5aac1 (diff)
downloadtdeaccessibility-970712ef0aa11ac3ddf52235da7c813253130fa0.tar.gz
tdeaccessibility-970712ef0aa11ac3ddf52235da7c813253130fa0.zip
Cleanup TDELocale warnings in kbstate applet
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bad8dd9dd09fe185e9f15788438f30e442123a7c)
-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);