Fix regression. Setup command line parser before checking UI mode state.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-28 07:47:14 +02:00
parent 2f9d591929
commit 0616dc5540

View file

@ -601,14 +601,14 @@ void VApplication::InitOptions()
LoadTranslation(QLocale().name());// By default the console version uses system locale
// Create command line parser after loading translations to show localized version.
VCommandLine::Get(*this);
if (VApplication::IsGUIMode())// By default console version uses system locale
{
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";
if (QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK) == false)
{