Commit 3f806db1 authored by CABEL Tristan's avatar CABEL Tristan

bugfix test if a widget is created before inserting it in the controller

parent fa3b8ee3
......@@ -133,10 +133,10 @@ void dtkWidgetsLayout::create(const QString& name)
dtkWidgetsWidget *widget = d->creator(name);
d->current->setView(widget);
dtkWidgetsController::instance()->insert(widget);
if(widget) {
d->current->setView(widget);
dtkWidgetsController::instance()->insert(widget);
}
}
void dtkWidgetsLayout::keyPressEvent(QKeyEvent *event)
......
Markdown is supported
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