From: bruneton Date: Thu, 4 Apr 2013 14:46:29 +0000 (+0000) Subject: Minor: cursor position wasn't handled properly. X-Git-Tag: V6_main_FINAL~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc9527d6c4fb4f85dd7d4ec719839d61acaab0b0;p=modules%2Fgui.git Minor: cursor position wasn't handled properly. --- diff --git a/src/PyConsole/PyConsole_Editor.cxx b/src/PyConsole/PyConsole_Editor.cxx index cee79f245..2d7317ba4 100644 --- a/src/PyConsole/PyConsole_Editor.cxx +++ b/src/PyConsole/PyConsole_Editor.cxx @@ -398,7 +398,9 @@ void PyConsole_Editor::execAndWait( const QString& command ) void PyConsole_Editor::handleReturn() { // Position cursor at the end - textCursor().movePosition(QTextCursor::End); + QTextCursor curs(textCursor()); + curs.movePosition(QTextCursor::End); + setTextCursor(curs); // get last line QTextBlock par = document()->end().previous();