Enable the version checker on Mac.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-06-04 12:00:36 +03:00
parent 942c17b181
commit 4cab5b0dc9

View file

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
Q_INIT_RESOURCE(icons);
Q_INIT_RESOURCE(toolicon);
QT_REQUIRE_VERSION(argc, argv, "5.2.0")// clazy:exclude=qstring-arg
QT_REQUIRE_VERSION(argc, argv, "5.2.0")// clazy:exclude=qstring-arg,qstring-allocations
#if defined(Q_OS_WIN)
VAbstractApplication::WinAttachConsole();
@ -63,9 +63,6 @@ int main(int argc, char *argv[])
app.InitOptions();
// Due to unknown reasons version checker cause a crash. See issue #633.
// Before we will find what cause such crashes it will stay disabled in Release mode on Mac OS.
#if !defined(Q_OS_MAC) || !defined(V_NO_ASSERT)
if (VApplication::IsGUIMode())
{
// Set feed URL before doing anything else
@ -74,7 +71,6 @@ int main(int argc, char *argv[])
// Check for updates automatically
FvUpdater::sharedUpdater()->CheckForUpdatesSilent();
}
#endif // V_NO_ASSERT
MainWindow w;
#if !defined(Q_OS_MAC)