diff options
author | jasplin <qt-info@nokia.com> | 2009-03-27 10:51:40 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-03-27 10:59:36 (GMT) |
commit | f9796f295e3fa42e4855f386b5663b1c2b957d10 (patch) | |
tree | aad54733c3a3e5d603d9976e71892c638c23bdca /src | |
parent | 4b3d81c629167a24424119ca4f296a85b78eab05 (diff) | |
download | Qt-f9796f295e3fa42e4855f386b5663b1c2b957d10.zip Qt-f9796f295e3fa42e4855f386b5663b1c2b957d10.tar.gz Qt-f9796f295e3fa42e4855f386b5663b1c2b957d10.tar.bz2 |
Clear QLineEdit selection when redoing a delete operation.
Deleting text in a QLineEdit should never leave a non-empty
selection. This is now reflected properly in the redo function.
Reviewed-by: janarve
Task-number: 248948
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index b03df9e..e243ad0 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -3523,6 +3523,8 @@ void QLineEditPrivate::redo() { case RemoveSelection: case DeleteSelection: text.remove(cmd.pos, 1); + selstart = cmd.selStart; + selend = cmd.selEnd; cursor = cmd.pos; break; case Separator: |