From 4871ba69d6b0e2338f07b9bc8077f8899d7d8842 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sun, 20 Mar 2016 22:25:05 +0100 Subject: Fixed backspace not working in linedit. Fixed by readding code lost at refactoring 'a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24.' --- plugingui/lineedit.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugingui') 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; } -- cgit v1.2.3