From 0da6c85ba2407560f58b7f40f9a82794697519e6 Mon Sep 17 00:00:00 2001 From: Boudewijn Rempt Date: Thu, 27 Jun 2019 18:37:28 +0200 Subject: [PATCH] Active the crash handler earlier --- krita/main.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/krita/main.cc b/krita/main.cc index fbdfd20f11..d0102241ad 100644 --- a/krita/main.cc +++ b/krita/main.cc @@ -140,6 +140,12 @@ void resetRotation() extern "C" int main(int argc, char **argv) { +#if defined HAVE_KCRASH + KCrash::initialize(); +#elif defined USE_DRMINGW + tryInitDrMingw(); +#endif + // The global initialization of the random generator qsrand(time(0)); bool runningInKDE = !qgetenv("KDE_FULL_SESSION").isEmpty(); @@ -399,11 +405,6 @@ extern "C" int main(int argc, char **argv) } -#if defined HAVE_KCRASH - KCrash::initialize(); -#elif defined USE_DRMINGW - tryInitDrMingw(); -#endif // If we should clear the config, it has to be done as soon as possible after // KisApplication has been created. Otherwise the config file may have been read -- GitLab