From 2ffb316b36370410118ed45034963fbf34dc977b 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. --HG-- branch : release --- 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 d534bbd34..af337dd1f 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -637,7 +637,11 @@ const VTranslateVars *VApplication::TrVars() //--------------------------------------------------------------------------------------------------------------------- void VApplication::InitTrVars() { - if (trVars == nullptr) + if (trVars != nullptr) + { + trVars->Retranslate(); + } + else { trVars = new VTranslateVars(); }