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:
parent
3950ff9a5d
commit
5410b01753
|
@ -658,7 +658,11 @@ const VTranslateVars *VApplication::TrVars()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VApplication::InitTrVars()
|
||||
{
|
||||
if (trVars == nullptr)
|
||||
if (trVars != nullptr)
|
||||
{
|
||||
trVars->Retranslate();
|
||||
}
|
||||
else
|
||||
{
|
||||
trVars = new VTranslateVars();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user