diff --git a/launcher/startGame/StartGameTab.cpp b/launcher/startGame/StartGameTab.cpp index 8e947d124..0f1926a57 100644 --- a/launcher/startGame/StartGameTab.cpp +++ b/launcher/startGame/StartGameTab.cpp @@ -20,6 +20,14 @@ #include "../../lib/filesystem/Filesystem.h" #include "../../lib/VCMIDirs.h" +void StartGameTab::changeEvent(QEvent *event) +{ + if(event->type() == QEvent::LanguageChange) + ui->retranslateUi(this); + + QWidget::changeEvent(event); +} + StartGameTab::StartGameTab(QWidget * parent) : QWidget(parent) , ui(new Ui::StartGameTab) diff --git a/launcher/startGame/StartGameTab.h b/launcher/startGame/StartGameTab.h index 9f165278c..d66e449b5 100644 --- a/launcher/startGame/StartGameTab.h +++ b/launcher/startGame/StartGameTab.h @@ -39,6 +39,7 @@ class StartGameTab : public QWidget void refreshPresets(); void refreshGameData(); + void changeEvent(QEvent *event) override; public: explicit StartGameTab(QWidget * parent = nullptr); ~StartGameTab();