mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-03-20 13:20:50 +00:00
GH-2101 select everything when editing instance names
This commit is contained in:
parent
54e857a7f5
commit
e8c382bede
@ -389,6 +389,7 @@ void ListViewDelegate::setEditorData(QWidget* editor, const QModelIndex& index)
|
||||
QTextEdit * realeditor = qobject_cast<NoReturnTextEdit *>(editor);
|
||||
realeditor->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
|
||||
realeditor->append(text);
|
||||
realeditor->selectAll();
|
||||
realeditor->document()->clearUndoRedoStacks();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user