Fixed issue #930. Valentina doesn't update translation for variables after

dynamic language switch.
(grafted from 60b4d185c93930528c4f4187f97c3305811b33ac)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-17 16:00:25 +02:00
parent 3950ff9a5d
commit 5410b01753

View File

@ -658,7 +658,11 @@ const VTranslateVars *VApplication::TrVars()
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VApplication::InitTrVars() void VApplication::InitTrVars()
{ {
if (trVars == nullptr) if (trVars != nullptr)
{
trVars->Retranslate();
}
else
{ {
trVars = new VTranslateVars(); trVars = new VTranslateVars();
} }