forked from qt-creator/qt-creator
Avoid infinit loop in submit editor on Mac.
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -242,6 +242,7 @@ static QString wrappedText(const QTextEdit *e)
|
||||
cursor.select(QTextCursor::LineUnderCursor);
|
||||
rc += cursor.selectedText();
|
||||
rc += newLine;
|
||||
cursor.movePosition(QTextCursor::EndOfLine); // Mac needs it
|
||||
cursor.movePosition(QTextCursor::Right);
|
||||
}
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user