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

try not to crash, a noble goal.

BUG:265089
parent 5a69188b
......@@ -58,7 +58,11 @@ Task::~Task()
emit destroyed(this);
foreach (QGraphicsWidget * widget, d->widgetsByHost) {
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
widget->deleteLater();
}
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