Resolved issue #473. Tape 'Preferences' cause loss of focus

(grafted from e72978060a109d22c241f64324f30b7a149e091b)

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-05-07 11:44:23 +03:00
parent 840520c5f8
commit 95b1627771
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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<QString, QSharedPointer<VMeasurement> > table = data->DataMeasurements();
QMap<int, QSharedPointer<VMeasurement> > orderedTable;
QMap<QString, QSharedPointer<VMeasurement> >::const_iterator iterMap;
@ -2547,7 +2548,6 @@ void TMainWindow::UpdatePatternUnit()
return;
}
ShowUnits();
RefreshTable();
search->RefreshList(ui->lineEditFind->text());