Commit 817ae4b7 authored by Aaron J. Seigo's avatar Aaron J. Seigo
Browse files

try not to crash, a noble goal.

parent 441ad0f8
...@@ -58,7 +58,11 @@ Task::~Task() ...@@ -58,7 +58,11 @@ Task::~Task()
emit destroyed(this); emit destroyed(this);
foreach (QGraphicsWidget * widget, d->widgetsByHost) { foreach (QGraphicsWidget * widget, d->widgetsByHost) {
disconnect(widget, 0, this, 0); disconnect(widget, 0, this, 0);
delete widget; // sometimes it appears that the widget will get scheduled for a repaint
// then it gets deleted here and QGraphicsScene doesn't get that straight
// in its bookkeeping and crashes occur; work around this by giving it a
// chance to schedule after the next paintfun
} }
delete d; delete d;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment