Preserve setting across language change

This commit is contained in:
wandererfan
2018-03-11 12:56:02 -04:00
committed by wmayer
parent 04421039a8
commit 402274ed78
2 changed files with 4 additions and 0 deletions

View File

@@ -85,7 +85,9 @@ void DlgPrefsTechDraw2Imp::loadSettings()
void DlgPrefsTechDraw2Imp::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {
saveSettings();
retranslateUi(this);
loadSettings();
}
else {
QWidget::changeEvent(e);

View File

@@ -105,7 +105,9 @@ void DlgPrefsTechDrawImp::loadSettings()
void DlgPrefsTechDrawImp::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {
saveSettings();
retranslateUi(this);
loadSettings();
}
else {
QWidget::changeEvent(e);