Fixed #7174: Do not forget argument number in Library Editor

This commit is contained in:
Aleksandr Pikalev 2015-11-26 20:58:13 +03:00 committed by PKEuS
parent b48cbde860
commit a6206ae727
1 changed files with 2 additions and 0 deletions

View File

@ -266,7 +266,9 @@ void LibraryDialog::editArg()
LibraryEditArgDialog *d = new LibraryEditArgDialog(0, arg);
if (d->exec() == QDialog::Accepted) {
unsigned number = arg.nr;
arg = d->getArg();
arg.nr = number;
ui->arguments->selectedItems().first()->setText(getArgText(arg));
}