X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWidgetBlackBoxWindow.txx;h=bc77e9b989c4aee5e394e2bf88b33e1db3c0de70;hb=a280c10c9ba7730cd9105a91bf1a40e72503a6e3;hp=aee878575f2f0af8ae148fd51a109ef16bbe04f1;hpb=28479cf7460f053625842de2e8df98b2e3363ede;p=bbtk.git diff --git a/kernel/src/bbtkWidgetBlackBoxWindow.txx b/kernel/src/bbtkWidgetBlackBoxWindow.txx index aee8785..bc77e9b 100644 --- a/kernel/src/bbtkWidgetBlackBoxWindow.txx +++ b/kernel/src/bbtkWidgetBlackBoxWindow.txx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkWidgetBlackBoxWindow.txx,v $ Language: C++ - Date: $Date: 2009/05/19 10:19:23 $ - Version: $Revision: 1.2 $ + Date: $Date: 2009/06/10 11:36:52 $ + Version: $Revision: 1.4 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -66,6 +66,8 @@ namespace bbtk bbtkDebugMessage("widget",9, "WidgetBlackBoxWindow::~WidgetBlackBoxWindow() " < void WidgetBlackBoxWindow::bbDestroy() { + if (mBox.expired()) return; bbtkDebugMessage("widget",9,"WidgetBlackBoxWindow::bbDestroy() [" <bbGetName()<<"]"<DecNbWindowsAlive(); mBox.lock()->bbSetWindow(0); + } //=========================================================================