Create command line parser after loading translations to show localized version.
--HG-- branch : develop
This commit is contained in:
parent
2c8539a30d
commit
98fcfbbb56
|
@ -278,7 +278,6 @@ VApplication::VApplication(int &argc, char **argv)
|
||||||
setApplicationVersion(APP_VERSION_STR);
|
setApplicationVersion(APP_VERSION_STR);
|
||||||
// making sure will create new instance...just in case we will ever do 2 objects of VApplication
|
// making sure will create new instance...just in case we will ever do 2 objects of VApplication
|
||||||
VCommandLine::Reset();
|
VCommandLine::Reset();
|
||||||
VCommandLine::Get(*this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -607,6 +606,9 @@ void VApplication::InitOptions()
|
||||||
LoadTranslation(ValentinaSettings()->GetLocale());
|
LoadTranslation(ValentinaSettings()->GetLocale());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create command line parser after loading translations to show localized version.
|
||||||
|
VCommandLine::Get(*this);
|
||||||
|
|
||||||
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
||||||
if (QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK) == false)
|
if (QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK) == false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user