[PATCH] thread-safe queued KDialogs

Sebastian Trüg trueg at kde.org
Sun Nov 23 10:36:12 GMT 2008

On Saturday 22 November 2008 23:08:00 Thiago Macieira wrote:
> Sebastian Trüg wrote:
> >The attached patch makes queued dialogs thread-safe. With it, queued
> >KMessagesBoxes and thus, the default KMessage messasge handler.
> >This fixes a crash in KRunner when KMimeType tried to complain about
> > missing mimetypes using KMessage which in turn uses KMessageBox which
> > tries to open a QWidget from a thread which is not the GUI thread which
> > triggers an assert. :)
> >
> >May I apply?
> What's the number 20? Where did the 20 milliseconds timer come from? Why
> not 25?
> I know it's not your code, but maybe someone else knows where this value
> came from. Let's not keep arbitrary things.

hm, you are right. I simply kept the timeout from the second singleshot. But 
AFAICS 0 should be fine here.
Sebastian Trueg
Sponsored by Mandriva to work on Nepomuk-KDE.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081123/cc84f9da/attachment.htm>

More information about the kde-core-devel mailing list