summaryrefslogtreecommitdiffstats
path: root/kbstateapplet/kbstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbstateapplet/kbstate.cpp')
-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);