From 98fcfbbb566b6d803bf12fc60df09608e79e6325 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 25 Mar 2019 13:49:23 +0200 Subject: [PATCH] Create command line parser after loading translations to show localized version. --HG-- branch : develop --- src/app/valentina/core/vapplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index a81acd8cc..e07670fad 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -278,7 +278,6 @@ VApplication::VApplication(int &argc, char **argv) setApplicationVersion(APP_VERSION_STR); // making sure will create new instance...just in case we will ever do 2 objects of VApplication VCommandLine::Reset(); - VCommandLine::Get(*this); } //--------------------------------------------------------------------------------------------------------------------- @@ -607,6 +606,9 @@ void VApplication::InitOptions() 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) {