Fix regression. Setup command line parser before checking UI mode state.
--HG-- branch : develop
This commit is contained in:
parent
2f9d591929
commit
0616dc5540
|
@ -601,14 +601,14 @@ void VApplication::InitOptions()
|
||||||
|
|
||||||
LoadTranslation(QLocale().name());// By default the console version uses system locale
|
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
|
if (VApplication::IsGUIMode())// By default console version uses system locale
|
||||||
{
|
{
|
||||||
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