[PATCH] Kickoff+Logout = Hangs

Aaron J. Seigo aseigo at kde.org
Fri Oct 26 20:16:44 BST 2007


On Friday 26 October 2007, Tobias Koenig wrote:
> when you try to close the KDE4 session with kickoff the logout

thanks for looking into this...

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

mico-nitpick: perhaps instead of storing the whole QUrl and doing the 
path().remove("/") again (just seems a bit brittle having that in more than 
one place if things change elsewhere in the code?), maybe just have a QString 
logoutAction member in the class. or even a slot for each of the possible 
actions and no QString member, though that's probably more work than it's 
worth.

in any case, i'm cool with the patch in general.

> 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...

i've made openUrl non-const now ...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071026/c6a52132/attachment.sig>


More information about the kde-core-devel mailing list