Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes: DuiTextEdit update issue for setSelection.
RevBy: Pekka Vuorela
  • Loading branch information
chning authored and Pekka Vuorela committed Apr 1, 2010
1 parent d28a488 commit fd47594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/duitextedit.cpp
Expand Up @@ -765,7 +765,6 @@ void DuiTextEdit::setSelection(int start, int length, bool useBoundaries)
if (begin == currentCursor->anchor() && end == currentCursor->position()) {
return;
}
updateMicroFocus();

// make an actual selection
currentCursor->setPosition(begin);
Expand All @@ -788,6 +787,8 @@ void DuiTextEdit::setSelection(int start, int length, bool useBoundaries)

model()->updateCursor();

updateMicroFocus();

emit selectionChanged();

return;
Expand Down

0 comments on commit fd47594

Please sign in to comment.