Commit 54a3d802 authored by CABEL Tristan's avatar CABEL Tristan

bugfix on clear on dtkWidgetsLayout

parent aee1f134
# ChangeLog
## version 2.11.7 - 2019-07-03
- bugfix on dtkwidgetsLayout clear()
## version 2.11.6 - 2019-06-28
- set rpath
- expose some internals of mainWindow
......
......@@ -24,7 +24,7 @@ project(dtkWidgets)
set(${PROJECT_NAME}_VERSION_MAJOR 2)
set(${PROJECT_NAME}_VERSION_MINOR 11)
set(${PROJECT_NAME}_VERSION_PATCH 6)
set(${PROJECT_NAME}_VERSION_PATCH 7)
set(${PROJECT_NAME}_VERSION
${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH})
......
......@@ -483,10 +483,11 @@ void dtkWidgetsLayoutItem::clear(void)
if (d->proxy && d->proxy->view())
emit unfocused(d->proxy->view());
if (d->proxy->view())
if (d->proxy && d->proxy->view())
d->proxy->view()->setParent(nullptr);
delete d->proxy;
if(d->proxy)
delete d->proxy;
d->proxy = new dtkWidgetsLayoutItemProxy(d->root);
......
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