[kmail2] [Bug 363085] kmail window fails to display/load on second start

via KDE Bugzilla bugzilla_noreply at kde.org
Sat May 21 17:24:59 BST 2016


https://bugs.kde.org/show_bug.cgi?id=363085

--- Comment #11 from blaze at vivaldi.net ---
exec() is a member of KJob class. Now let's look what tells us the
documentation:

     * Executes the job synchronously.
     *
     * This will start a nested QEventLoop internally. Nested event loop can be
dangerous and
     * can have unintended side effects, you should avoid calling exec()
whenever you can and use the
     * asynchronous interface of KJob instead.
     *
     * Should you indeed call this method, you need to make sure that all
callers are reentrant,
     * so that events delivered by the inner event loop don't cause
non-reentrant functions to be
     * called, which usually wreaks havoc.
     *
     * Note that the event loop started by this method does not process user
input events, which means
     * your user interface will effectivly be blocked. Other events like paint
or network events are
     * still being processed. The advantage of not processing user input events
is that the chance of
     * accidental reentrancy is greatly reduced. Still you should avoid calling
this function.
     *
     * @return true if the job has been executed without error, false otherwise

AHA!

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list