Update an increment details after update from file.

When we update the table after changes in pattern we want also to see change in formula of a current row.
This commit is contained in:
Roman Telezhynskyi 2020-09-22 17:37:55 +03:00
parent f150428925
commit 7ac93657cb

View File

@ -816,6 +816,9 @@ void DialogIncrements::FullUpdateFromFile()
{ {
hasChanges = false; hasChanges = false;
const int incrementRow = ui->tableWidgetIncrement->currentRow();
const int pcRow = ui->tableWidgetPC->currentRow();
ui->tableWidgetLines->clearContents(); ui->tableWidgetLines->clearContents();
ui->tableWidgetSplines->clearContents(); ui->tableWidgetSplines->clearContents();
ui->tableWidgetAnglesCurves->clearContents(); ui->tableWidgetAnglesCurves->clearContents();
@ -835,6 +838,9 @@ void DialogIncrements::FullUpdateFromFile()
search->RefreshList(ui->lineEditFind->text()); search->RefreshList(ui->lineEditFind->text());
searchPC->RefreshList(ui->lineEditFindPC->text()); searchPC->RefreshList(ui->lineEditFindPC->text());
ui->tableWidgetIncrement->selectRow(incrementRow);
ui->tableWidgetPC->selectRow(pcRow);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------