summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2016-03-20 22:25:05 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2016-03-20 22:25:05 +0100
commit4871ba69d6b0e2338f07b9bc8077f8899d7d8842 (patch)
tree7faca1608386e90b719ef3df1c12a3cde4cd1036 /plugingui
parent357abaaf940f0ba2319952c6d7f5c11575882490 (diff)
Fixed backspace not working in linedit. Fixed by readding code lost at refactoring 'a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24.'
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/lineedit.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc
index 25eeb4b..cf77a3d 100644
--- a/plugingui/lineedit.cc
+++ b/plugingui/lineedit.cc
@@ -216,7 +216,6 @@ void LineEdit::repaintEvent(RepaintEvent *repaintEvent)
Painter p(*this);
p.clear();
-
int w = width();
int h = height();
if((w == 0) || (h == 0))
@@ -243,6 +242,8 @@ void LineEdit::repaintEvent(RepaintEvent *repaintEvent)
break;
case Noop:
+ visibleText = _text;
+ offsetPos = 0;
break;
}