forked from qt-creator/qt-creator
TextEditor: Fix corrupted cursor after droping text
... by removing excess endEditBlock. Fixes: QTCREATORBUG-25305 Change-Id: I81fd2ee57a7a470fcc8e78475f336bf2b651a14b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
@@ -7766,7 +7766,6 @@ void TextEditorWidget::insertFromMimeData(const QMimeData *source)
|
||||
const int anchor = cursor.position();
|
||||
cursor.insertText(text);
|
||||
const int pos = cursor.position();
|
||||
cursor.endEditBlock();
|
||||
cursor.setPosition(anchor);
|
||||
cursor.setPosition(pos, QTextCursor::KeepAnchor);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user