Commit 82a7ff48 authored by promayon's avatar promayon
Browse files

FIXED bug #78

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@105 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 888f8676
......@@ -310,7 +310,7 @@ void ActionViewer::embedActionWidget(Action *action) {
//-- check history
QWidget * actionWidget = action->getWidget();
int actionWidgetIndex = actionWidgetStack->indexOf(actionWidget);
if (actionWidgetIndex == -1) {
if (actionWidgetIndex == -1 && actionWidget) {
// add the widget (beware that actionWidgetStack then takes ownership of the widget!)
actionWidgetIndex = actionWidgetStack->addWidget(actionWidget);
}
......
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