From 0616dc554004139d2accecb294aed01fde02fc63 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 28 Mar 2019 07:47:14 +0200 Subject: [PATCH] Fix regression. Setup command line parser before checking UI mode state. --HG-- branch : develop --- src/app/valentina/core/vapplication.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index b849e27e0..0de48d911 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -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) {