]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWidgetBlackBoxWindow.txx
Fixed Window deletion mechanism
[bbtk.git] / kernel / src / bbtkWidgetBlackBoxWindow.txx
index aee878575f2f0af8ae148fd51a109ef16bbe04f1..e2ac9990296620088303f90733e904d3e8e3bc04 100644 (file)
@@ -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/05/28 08:12:06 $
+  Version:   $Revision: 1.3 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -66,6 +66,8 @@ namespace bbtk
     bbtkDebugMessage("widget",9,
                     "WidgetBlackBoxWindow::~WidgetBlackBoxWindow() "
                     <<this<<std::endl);
+    std::cout << "**** WidgetBlackBoxWindow::~WidgetBlackBoxWindow() "
+             <<this<<std::endl;
     bbHide();
     if (!mBox.expired())
       {
@@ -105,12 +107,14 @@ namespace bbtk
   template <class W>
   void WidgetBlackBoxWindow<W>::bbDestroy()
   {
+    /*
     if (mBox.expired()) return;
     bbtkDebugMessage("widget",9,"WidgetBlackBoxWindow::bbDestroy() [" 
                     <<mBox.lock()->bbGetName()<<"]"<<std::endl);
     bbHide();
     mBox.lock()->DecNbWindowsAlive();
     mBox.lock()->bbSetWindow(0);
+    */
   }
   //=========================================================================