Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,6 @@ 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, [&notificationModel]()
{
notificationModel.addSuccess( QObject::tr( "Report submitted. Please contact the support" ) );
Expand Down Expand Up @@ -869,6 +866,13 @@ int main( int argc, char *argv[] )
return EXIT_FAILURE;
}

// this fixes the error dump from C++ defined QML components, when quiting application
QObject::connect( &app, &QCoreApplication::aboutToQuit, object, [&]
{
object->deleteLater();
engine.clearComponentCache();
} );

#ifdef Q_OS_IOS
QString logoUrl = "qrc:logo.png";
#else
Expand Down
Loading