diff --git a/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp b/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp index 89de17347..c218ba4d4 100644 --- a/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp +++ b/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp @@ -103,6 +103,7 @@ void TapeConfigurationPage::Apply() systemChanged = false; qApp->LoadTranslation(locale); + qApp->processEvents();// force to call changeEvent // Part about measurments will not be updated automatically qApp->RetranslateTables(); diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 3b1bc143e..c50144a9b 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -160,7 +160,6 @@ void TMainWindow::RetranslateTable() { const int row = ui->tableWidget->currentRow(); RefreshTable(); - ShowUnits(); ui->tableWidget->selectRow(row); } } @@ -2176,6 +2175,8 @@ void TMainWindow::RefreshTable() ui->tableWidget->blockSignals(true); ui->tableWidget->clearContents(); + ShowUnits(); + const QMap > table = data->DataMeasurements(); QMap > orderedTable; QMap >::const_iterator iterMap; @@ -2547,7 +2548,6 @@ void TMainWindow::UpdatePatternUnit() return; } - ShowUnits(); RefreshTable(); search->RefreshList(ui->lineEditFind->text());