summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@pelagicore.com>2020-06-02 15:31:41 +0200
committerBernd Weimer <bernd.weimer@pelagicore.com>2020-06-02 23:43:17 +0200
commited9042791b5aeeaf77c485eab9ee88ae981834e2 (patch)
tree242f93410d1137059b680c00c52ff9204d7a9d16
parentd351cb64963a72ea29eb119d0574042374ed7dd7 (diff)
Fix build without precompiled headers5.14
Change-Id: I18be2b351eac574df73fef8efe8e6c1c48683370 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--src/main-lib/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main-lib/main.cpp b/src/main-lib/main.cpp
index 033271dc..6ebb6a09 100644
--- a/src/main-lib/main.cpp
+++ b/src/main-lib/main.cpp
@@ -96,6 +96,7 @@
#include "main.h"
#include "configuration.h"
#include "applicationmanager.h"
+#include "package.h"
#include "packagemanager.h"
#include "packagedatabase.h"
#include "installationreport.h"
@@ -157,8 +158,10 @@ QT_BEGIN_NAMESPACE_AM
// old trick to do this hooking transparently for the user of the class.
int &Main::preConstructor(int &argc)
{
+#if !defined(AM_DISABLE_INSTALLER)
// try to set a reasonable locale - we later verify with checkCorrectLocale() if we succeeded
PackageUtilities::ensureCorrectLocale();
+#endif
return argc;
}