Commit 02b1037d authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

fix: we must emit inserted AFTER setView

parent def4dd87
Pipeline #232425 passed with stage
in 0 seconds
......@@ -136,8 +136,11 @@ void dtkWidgetsLayout::create(const QString& action_name)
if(widget) {
widget->setActionName(action_name);
dtkWidgetsController::instance()->blockSignals(true);
dtkWidgetsController::instance()->insert(widget);
dtkWidgetsController::instance()->blockSignals(false);
d->current->setView(widget);
emit dtkWidgetsController::instance()->inserted(widget);
}
}
......@@ -151,8 +154,11 @@ void dtkWidgetsLayout::create(const QString& action_name, const QString& view_na
if(widget) {
widget->setActionName(action_name);
widget->setObjectName(view_name);
dtkWidgetsController::instance()->blockSignals(true);
dtkWidgetsController::instance()->insert(widget);
dtkWidgetsController::instance()->blockSignals(false);
d->current->setView(widget);
emit dtkWidgetsController::instance()->inserted(widget);
}
}
......
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