[PATCH] Kickoff+Logout = Hangs

Tobias Koenig tokoe at kde.org
Fri Oct 26 16:55:43 BST 2007


Hi,

when you try to close the KDE4 session with kickoff the logout
screen hangs for several seconds before you can click on the Logout or
Cancel button.

The problems seems to be some ugly dbus deadlock (maybe because the call
is executed from within a QDialog with its own event loop?) which can be
prevented by decoupling the dbus call with QTimer.

Attached is a patch which does that. Ok for commit?

Ciao,
Tobias

P.S.: I know this const_cast is ugly, however I'd blame the API here,
because making a 'openUrl' method const is a bad design IMHO...

Ciao,
Tobias
-- 
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma_kickoff.patch
Type: text/x-diff
Size: 2733 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071026/8fe09394/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071026/8fe09394/attachment.sig>


More information about the kde-core-devel mailing list