From 2113f6e7d495e987cbfa994aceade2ec5ff6596e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 29 Sep 2015 20:12:23 +0300 Subject: [PATCH] Fixed issue #383. Crash on running Valentina after build. --HG-- branch : develop --- src/app/valentina/core/vapplication.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index f6e06609e..cfee6a918 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -194,6 +194,15 @@ VApplication::VApplication(int &argc, char **argv) lockLog(), out(nullptr) { + setApplicationDisplayName(VER_PRODUCTNAME_STR); + setApplicationName(VER_INTERNALNAME_STR); + setOrganizationName(VER_COMPANYNAME_STR); + setOrganizationDomain(VER_COMPANYDOMAIN_STR); + // Setting the Application version + setApplicationVersion(APP_VERSION_STR); + + OpenSettings(); + // making sure will create new instance...just in case we will ever do 2 objects of VApplication VCommandLine::Reset(); LoadTranslation(QLocale::system().name());// By default the console version uses system locale @@ -495,15 +504,6 @@ void VApplication::ClearOldLogs() const //--------------------------------------------------------------------------------------------------------------------- void VApplication::InitOptions() { - setApplicationDisplayName(VER_PRODUCTNAME_STR); - setApplicationName(VER_INTERNALNAME_STR); - setOrganizationName(VER_COMPANYNAME_STR); - setOrganizationDomain(VER_COMPANYDOMAIN_STR); - // Setting the Application version - setApplicationVersion(APP_VERSION_STR); - - OpenSettings(); - #if defined(Q_OS_WIN) && defined(Q_CC_GNU) // Catch and send report VApplication::DrMingw();