Auto-select text in EditInstructionDialog

This commit is contained in:
itayc0hen 2019-12-06 19:04:29 +02:00 committed by Itay Cohen
parent 035aa52cca
commit a02753f866

View File

@ -33,6 +33,7 @@ QString EditInstructionDialog::getInstruction() const
void EditInstructionDialog::setInstruction(const QString &instruction)
{
ui->lineEdit->setText(instruction);
ui->lineEdit->selectAll();
updatePreview(instruction);
}