Commit 93cb711f authored by Konrad Materka's avatar Konrad Materka
Browse files

Merge branch 'Plasma/5.19'

parents 2d353e5a 35ae7712
......@@ -24,10 +24,6 @@ int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
// This is needed with KJobs in a QCoreApplication as when they finish
// the internal QEventLoopLocker expires and our app exits
app.setQuitLockEnabled(false);
new Startup(&app);
app.exec();
}
......@@ -151,6 +151,8 @@ class NotificationThread : public QThread
{
Q_OBJECT
void run() override {
// Prevent application exit until the thread (and hence the sound) completes
QEventLoopLocker(this);
// We cannot parent to the thread itself so let's create
// a QObject on the stack and parent everythign to it
QObject parent;
......
Markdown is supported
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