Don't show log messages from each panel's destructor unless environment variable...
[synfig.git] / synfig-studio / trunk / src / gtkmm / historytreestore.cpp
index b9573c8..da125ab 100644 (file)
@@ -77,7 +77,8 @@ HistoryTreeStore::HistoryTreeStore(etl::loose_handle<studio::Instance> instance_
 
 HistoryTreeStore::~HistoryTreeStore()
 {
-       synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
+       if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+               synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
 }
 
 Glib::RefPtr<HistoryTreeStore>