Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c05e8853 authored by David Edmundson's avatar David Edmundson

Keep kioclient alive whilst we're showing error messages

Summary:
QApplication::quit will close any open windows including error messages.

This keeps the process alive whilst we have a top level window.

Test Plan:
Ran a kioclient script that produced an error dialog
It stayed on my screen

Reviewers: #plasma, nerdopolist, broulik

Reviewed By: #plasma, broulik

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17653
parent 36a59ad7
......@@ -408,7 +408,11 @@ void ClientApp::slotResult( KJob * job )
}
}
m_ok = !job->error();
qApp->quit();
if (qApp->topLevelWindows().isEmpty()) {
qApp->quit();
} else {
qApp->setQuitOnLastWindowClosed(true);
}
}
void ClientApp::slotDialogCanceled()
......
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