Permalink
Browse files

GH-2101 select everything when editing instance names

  • Loading branch information...
peterix committed Nov 23, 2018
1 parent 54e857a commit e8c382bede6a23648339b7d3f290137f9265a7ba
Showing with 1 addition and 0 deletions.
  1. +1 −0 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();
}

0 comments on commit e8c382b

Please sign in to comment.