Resolved issue #473. Tape 'Preferences' cause loss of focus
--HG-- branch : develop
This commit is contained in:
parent
cc84b6e7d6
commit
cd9c6c99ae
|
@ -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();
|
||||
|
|
|
@ -168,7 +168,6 @@ void TMainWindow::RetranslateTable()
|
|||
{
|
||||
const int row = ui->tableWidget->currentRow();
|
||||
RefreshTable();
|
||||
ShowUnits();
|
||||
ui->tableWidget->selectRow(row);
|
||||
}
|
||||
}
|
||||
|
@ -2214,6 +2213,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;
|
||||
|
@ -2585,7 +2586,6 @@ void TMainWindow::UpdatePatternUnit()
|
|||
return;
|
||||
}
|
||||
|
||||
ShowUnits();
|
||||
RefreshTable();
|
||||
|
||||
search->RefreshList(ui->lineEditFind->text());
|
||||
|
|
Loading…
Reference in New Issue
Block a user