Skip to content
Permalink
Browse files

Preserve setting across language change

  • Loading branch information
WandererFan authored and wwmayer committed Mar 11, 2018
1 parent 2b35fd1 commit 9d26fe0599eefd621ea4f623bc96743780eb6c8e
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/Mod/TechDraw/Gui/DlgPrefsTechDraw2Imp.cpp
  2. +2 −0 src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp
@@ -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);
@@ -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);

0 comments on commit 9d26fe0

Please sign in to comment.
You can’t perform that action at this time.