Fixed issue #930. Valentina doesn't update translation for variables after
dynamic language switch. --HG-- branch : release
This commit is contained in:
parent
1d5d7e5864
commit
2ffb316b36
|
@ -637,7 +637,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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user