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

dynamic language switch.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2019-01-17 16:00:25 +02:00
parent 1d5d7e5864
commit 2ffb316b36

View File

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