deleteLater document (and view)

Niko Sams niko.sams at gmail.com
Sun Jun 20 16:51:39 UTC 2010


Hello all and David,

While working on my browser-like-tabs experiment I get crashes in the event-loop
when Ctrl-Clicking a function in the editor, as the currently open
view is closed
inside openDocument.
My guess is that it is deleted while the click event is handled.
deleting using deleteLater for the view would fix this.

But here I found a commit that changed the deletion the other way around:
http://gitorious.org/kdevelop/kdevplatform/commit/e88da82744683ae4c1cdd6010d6bc320b14a6223

After reverting this commit my problem is solved, and (not very
intensive) testing of workingsets
didn't result in a crash either.

How should I proceed?

Niko




More information about the KDevelop-devel mailing list