diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-11-23 21:47:23 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-23 21:47:23 +0100 |
commit | e8c382bede6a23648339b7d3f290137f9265a7ba (patch) | |
tree | 7fa24354ce1a286b1c0ac9529acabea29a477842 | |
parent | 54e857a7f5ad210d0c833ad063117d1faecc2e76 (diff) | |
download | MultiMC-e8c382bede6a23648339b7d3f290137f9265a7ba.tar MultiMC-e8c382bede6a23648339b7d3f290137f9265a7ba.tar.gz MultiMC-e8c382bede6a23648339b7d3f290137f9265a7ba.tar.lz MultiMC-e8c382bede6a23648339b7d3f290137f9265a7ba.tar.xz MultiMC-e8c382bede6a23648339b7d3f290137f9265a7ba.zip |
GH-2101 select everything when editing instance names
-rw-r--r-- | application/groupview/InstanceDelegate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/groupview/InstanceDelegate.cpp b/application/groupview/InstanceDelegate.cpp index 56e98ac1..bb5fa776 100644 --- a/application/groupview/InstanceDelegate.cpp +++ b/application/groupview/InstanceDelegate.cpp @@ -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(); } |