summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-23 21:47:23 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-23 21:47:23 +0100
commite8c382bede6a23648339b7d3f290137f9265a7ba (patch)
tree7fa24354ce1a286b1c0ac9529acabea29a477842
parent54e857a7f5ad210d0c833ad063117d1faecc2e76 (diff)
downloadMultiMC-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.cpp1
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();
}