Avoid infinit loop in submit editor on Mac.

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
con
2009-03-27 15:26:51 +01:00
parent 5ed88c13e1
commit 1f869cb5c9

View File

@@ -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;