Merge lp:~michael-sheldon/ubuntu-keyboard/fix-1361732 into lp:ubuntu-keyboard

Proposed by Michael Sheldon
Status: Merged
Approved by: Bill Filler
Approved revision: 209
Merged at revision: 221
Proposed branch: lp:~michael-sheldon/ubuntu-keyboard/fix-1361732
Merge into: lp:ubuntu-keyboard
Diff against target: 17 lines (+4/-2)
1 file modified
src/view/abstracttexteditor.cpp (+4/-2)
To merge this branch: bzr merge lp:~michael-sheldon/ubuntu-keyboard/fix-1361732
Reviewer Review Type Date Requested Status
Bill Filler (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+232392@code.launchpad.net

Commit message

Clear the surrounding text buffer when clearing the preedit buffer.

Description of the change

Clear the surrounding text buffer when clearing the preedit buffer.

To post a comment you must log in.
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/ubuntu-keyboard) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * No

If you changed UI labels, did you update the pot file?

 * No

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?

 * No

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bill Filler (bfiller) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/<package-name>) on device or emulator?
yes

Did CI run pass? If not, please explain why.
yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/view/abstracttexteditor.cpp'
2--- src/view/abstracttexteditor.cpp 2014-08-11 13:46:41 +0000
3+++ src/view/abstracttexteditor.cpp 2014-08-27 12:44:25 +0000
4@@ -675,9 +675,11 @@
5 //! \brief Clears preedit.
6 void AbstractTextEditor::clearPreedit()
7 {
8+ Q_D(AbstractTextEditor);
9+
10 replacePreedit("");
11-
12- Q_D(AbstractTextEditor);
13+ text()->setSurrounding("");
14+ text()->setSurroundingOffset(0);
15
16 if (not d->valid()) {
17 return;

Subscribers

People subscribed via source and target branches