From b61ae8eaa178304e34eaf851621d7850d63efc27 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 8 Feb 2022 16:40:46 +0600 Subject: [PATCH] Fix window title after changing UI language --- src/qt/qt_progsettings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/qt_progsettings.cpp b/src/qt/qt_progsettings.cpp index c51070132..ac8ae0ed8 100644 --- a/src/qt/qt_progsettings.cpp +++ b/src/qt/qt_progsettings.cpp @@ -30,6 +30,7 @@ extern "C" { #include <86box/86box.h> +#include <86box/version.h> #include <86box/config.h> #include <86box/plat.h> } @@ -120,6 +121,7 @@ void ProgSettings::accept() reloadStrings(); update_mouse_msg(); main_window->ui->retranslateUi(main_window); + main_window->setWindowTitle(QString("%1 - %2 %3").arg(vm_name, EMU_NAME, EMU_VERSION_FULL)); QString msg = main_window->status->getMessage(); main_window->status.reset(new MachineStatus(main_window)); main_window->refreshMediaMenu();