Resolved issue #473. Tape 'Preferences' cause loss of focus
(grafted from e72978060a109d22c241f64324f30b7a149e091b) --HG-- branch : release
This commit is contained in:
parent
840520c5f8
commit
95b1627771
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user