From 7ac93657cb9db57191e4a5db87c691f4521393f4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 22 Sep 2020 17:37:55 +0300 Subject: [PATCH] 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. --- src/app/valentina/dialogs/dialogincrements.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/valentina/dialogs/dialogincrements.cpp b/src/app/valentina/dialogs/dialogincrements.cpp index b626b416c..890452cb4 100644 --- a/src/app/valentina/dialogs/dialogincrements.cpp +++ b/src/app/valentina/dialogs/dialogincrements.cpp @@ -816,6 +816,9 @@ void DialogIncrements::FullUpdateFromFile() { hasChanges = false; + const int incrementRow = ui->tableWidgetIncrement->currentRow(); + const int pcRow = ui->tableWidgetPC->currentRow(); + ui->tableWidgetLines->clearContents(); ui->tableWidgetSplines->clearContents(); ui->tableWidgetAnglesCurves->clearContents(); @@ -835,6 +838,9 @@ void DialogIncrements::FullUpdateFromFile() search->RefreshList(ui->lineEditFind->text()); searchPC->RefreshList(ui->lineEditFindPC->text()); + + ui->tableWidgetIncrement->selectRow(incrementRow); + ui->tableWidgetPC->selectRow(pcRow); } //---------------------------------------------------------------------------------------------------------------------