X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWidgetBlackBox.txx;h=0c2a7a12f6751428e461385c2f4b4897b52e9d4d;hb=4d6822024afbbe783cdd620e248184b37d84c540;hp=6f2e8a6de5998b189b36de9868744d7cfa970af7;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/kernel/src/bbtkWidgetBlackBox.txx b/kernel/src/bbtkWidgetBlackBox.txx index 6f2e8a6..0c2a7a1 100644 --- a/kernel/src/bbtkWidgetBlackBox.txx +++ b/kernel/src/bbtkWidgetBlackBox.txx @@ -295,6 +295,9 @@ namespace bbtk { bbtkBlackBoxDebugMessage("widget",1,"=> WidgetBlackBox::bbCloseWindow() [" <::bbDestroy\n"); + if (bbGetWindow()!=0) bbGetWindow()->bbDestroy();