Fixed issue #383. Crash on running Valentina after build.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-29 20:12:23 +03:00
parent da05f74468
commit 2113f6e7d4

View File

@ -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();