summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2015-10-25 18:48:23 +0300
committerJasem Mutlaq <[email protected]>2015-10-25 18:48:23 +0300
commit451c07a52842372d0902730834f480b8e434d007 (patch)
tree490617198b44e255eba26a7ea27b33c710bf9e9d
parenta169a4d36f599c766ab3960c17213739f914bbd2 (diff)
Do not translate empty strings
-rw-r--r--kstars/indi/indielement.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kstars/indi/indielement.cpp b/kstars/indi/indielement.cpp
index dd8a40e..dcfae46 100644
--- a/kstars/indi/indielement.cpp
+++ b/kstars/indi/indielement.cpp
@@ -270,12 +270,13 @@ void INDI_E::syncSwitch()
void INDI_E::syncText()
{
-
if (tp == NULL)
return;
- read_w->setText(i18nc(libindi_strings_context, tp->text));
-
+ if (tp->text[0])
+ read_w->setText(i18nc(libindi_strings_context, tp->text));
+ else
+ read_w->setText(tp->text);
}
void INDI_E::syncNumber()