From 5410b01753504b88127352881a2183ec1a0b658b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 17 Jan 2019 16:00:25 +0200 Subject: [PATCH] Fixed issue #930. Valentina doesn't update translation for variables after dynamic language switch. (grafted from 60b4d185c93930528c4f4187f97c3305811b33ac) --HG-- branch : develop --- src/app/valentina/core/vapplication.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index 171c5b920..a81acd8cc 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -658,7 +658,11 @@ const VTranslateVars *VApplication::TrVars() //--------------------------------------------------------------------------------------------------------------------- void VApplication::InitTrVars() { - if (trVars == nullptr) + if (trVars != nullptr) + { + trVars->Retranslate(); + } + else { trVars = new VTranslateVars(); }