Fixed crash after language change.
--HG-- branch : develop
This commit is contained in:
parent
f4aabbcf06
commit
840a4a9d92
|
@ -496,6 +496,8 @@ void TMainWindow::changeEvent(QEvent *event)
|
|||
{
|
||||
labelPatternUnit = new QLabel(tr("Pattern unit:"));
|
||||
|
||||
if (comboBoxUnits != nullptr)
|
||||
{
|
||||
const qint32 index = comboBoxUnits->currentIndex();
|
||||
comboBoxUnits->blockSignals(true);
|
||||
comboBoxUnits->clear();
|
||||
|
@ -504,6 +506,7 @@ void TMainWindow::changeEvent(QEvent *event)
|
|||
comboBoxUnits->blockSignals(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// remember to call base class implementation
|
||||
QMainWindow::changeEvent(event);
|
||||
|
|
Loading…
Reference in New Issue
Block a user