Create command line parser after loading translations to show localized version.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-25 13:49:23 +02:00
parent 2c8539a30d
commit 98fcfbbb56

View File

@ -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)
{ {