summaryrefslogtreecommitdiffstats
path: root/weather
diff options
context:
space:
mode:
authorLuiz Agostini <luiz.agostini@openbossa.org>2009-11-13 16:33:41 -0300
committerLuiz Agostini <luiz.agostini@openbossa.org>2009-11-13 16:33:41 -0300
commit143e69f7586a234ce35f09681fa401f034647241 (patch)
treec9d51be45713770ee5e13813b025d57c24273c61 /weather
parent876bf81ec9b89e9f407a7a388cef29bd7785ed61 (diff)
Weather: text imput bug fixing.
Signed-off-by: Luiz Agostini <luiz.agostini@openbossa.org>
Diffstat (limited to 'weather')
-rw-r--r--weather/addcitytool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/weather/addcitytool.cpp b/weather/addcitytool.cpp
index 9093372..219d92a 100644
--- a/weather/addcitytool.cpp
+++ b/weather/addcitytool.cpp
@@ -93,6 +93,10 @@ void AddCityLineEdit::focusInEvent(QFocusEvent *event)
void AddCityLineEdit::textEditedSlot(const QString & text)
{
Q_UNUSED(text);
+ static const QString cleanText(ADD_A_CITY_TEXT);
+ if (m_clean && text.length() >= cleanText.length() &&
+ text.left(cleanText.length()) == cleanText)
+ setText(text.right(text.length() - cleanText.length()));
m_clean = false;
}