Enable the version checker on Mac.
--HG-- branch : develop
This commit is contained in:
parent
942c17b181
commit
4cab5b0dc9
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
||||||
Q_INIT_RESOURCE(icons);
|
Q_INIT_RESOURCE(icons);
|
||||||
Q_INIT_RESOURCE(toolicon);
|
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)
|
#if defined(Q_OS_WIN)
|
||||||
VAbstractApplication::WinAttachConsole();
|
VAbstractApplication::WinAttachConsole();
|
||||||
|
@ -63,9 +63,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
app.InitOptions();
|
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())
|
if (VApplication::IsGUIMode())
|
||||||
{
|
{
|
||||||
// Set feed URL before doing anything else
|
// Set feed URL before doing anything else
|
||||||
|
@ -74,7 +71,6 @@ int main(int argc, char *argv[])
|
||||||
// Check for updates automatically
|
// Check for updates automatically
|
||||||
FvUpdater::sharedUpdater()->CheckForUpdatesSilent();
|
FvUpdater::sharedUpdater()->CheckForUpdatesSilent();
|
||||||
}
|
}
|
||||||
#endif // V_NO_ASSERT
|
|
||||||
|
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
#if !defined(Q_OS_MAC)
|
#if !defined(Q_OS_MAC)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user