From ed9042791b5aeeaf77c485eab9ee88ae981834e2 Mon Sep 17 00:00:00 2001 From: Bernd Weimer Date: Tue, 2 Jun 2020 15:31:41 +0200 Subject: Fix build without precompiled headers Change-Id: I18be2b351eac574df73fef8efe8e6c1c48683370 Reviewed-by: Robert Griebl --- src/main-lib/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.1