From 8645a403320024660c7fdc0e68bb3364ec796030 Mon Sep 17 00:00:00 2001 From: Withalion Date: Fri, 12 Sep 2025 12:40:02 +0200 Subject: [PATCH] Fix error dump on quit from QML components --- app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 7d40d4466..43df2a9f6 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -573,6 +573,9 @@ int main( int argc, char *argv[] ) CoreUtils::log( QStringLiteral( "AppState" ), QStringLiteral( "Application has quit" ) ); } ); + // this fixes the error dump from C++ defined QML components, when quiting application + QObject::connect( &app, &QCoreApplication::aboutToQuit, &engine, &QQmlEngine::deleteLater ); + QObject::connect( &help, &InputHelp::submitReportSuccessful, &lambdaContext, [¬ificationModel]() { notificationModel.addSuccess( QObject::tr( "Report submitted. Please contact the support" ) );