diff options
author | deva <deva> | 2010-08-13 07:58:49 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-13 07:58:49 +0000 |
commit | bc229dbfabdf6a59453605e7652f04a268605b3a (patch) | |
tree | 949c083efc8a06e1b55fa9440cc100d2b235215d /client/widgets/lineedit.cc | |
parent | d9338083192084613e5530b02710b796252d342b (diff) |
Memory cleanup bug, fixed.
Diffstat (limited to 'client/widgets/lineedit.cc')
-rw-r--r-- | client/widgets/lineedit.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/widgets/lineedit.cc b/client/widgets/lineedit.cc index 918f152..6b231f3 100644 --- a/client/widgets/lineedit.cc +++ b/client/widgets/lineedit.cc @@ -89,8 +89,9 @@ void LineEdit::setValue(QString value, QString source) { if(isUserSource(source)) emit wasChanged(); - if(lineedit->text() == value) - lineedit->setText(value + " "); // Hack to make sure the textChanged signal is emitted. + // Hack to make sure the textChanged signal is emitted. + if(lineedit->text() == value) lineedit->setText(value + " "); + lineedit->setText(value); setInitialValue(value); |