Commit a9a99469 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Fix a crash during start on non KDE desktops

Calling kmymoney->show() directly before the event loop is started using
exec() causes a crash when running on some non KDE desktops (e.g. XFCE)
with QWebEngine enabled. Postponing the call until the event loop is
active solved the problem.

BUG: 407902
FIXED-IN: 5.0.5
parent 7c0d6f85
......@@ -338,7 +338,12 @@ int runKMyMoney(QApplication& a, std::unique_ptr<QSplashScreen> splash, const QU
}
kmymoney->centralWidget()->setEnabled(true);
kmymoney->show();
// we cannot call kmymoney->show() directly as this causes a crash
// when running on some non KDE desktops (e.g. XFCE) with QWebEngine
// enabled. Postponing the call until we are inside the event loop
// solved the problem.
QMetaObject::invokeMethod(kmymoney, "show", Qt::QueuedConnection);
splash.reset();
const int rc = a.exec(); //krazy:exclude=crashy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment