Don't show log messages from each panel's destructor unless environment variable...
[synfig.git] / synfig-studio / trunk / src / gtkmm / layergrouptreestore.cpp
index f9750a5..ff0dd27 100644 (file)
@@ -95,7 +95,9 @@ LayerGroupTreeStore::LayerGroupTreeStore(etl::loose_handle<synfigapp::CanvasInte
 LayerGroupTreeStore::~LayerGroupTreeStore()
 {
        //clear();
-       synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
+
+       if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+               synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
 }
 
 bool