From 1631b0b7c026a3339fd5e20f5592e13c7e74fd0a Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Tue, 20 Oct 2009 22:21:01 +0200 Subject: [PATCH] When a layer is unchecked and it is not in any group don't show a warning message. --- synfig-studio/src/gtkmm/layergrouptreestore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synfig-studio/src/gtkmm/layergrouptreestore.cpp b/synfig-studio/src/gtkmm/layergrouptreestore.cpp index 6334c09..077436c 100644 --- a/synfig-studio/src/gtkmm/layergrouptreestore.cpp +++ b/synfig-studio/src/gtkmm/layergrouptreestore.cpp @@ -898,7 +898,9 @@ LayerGroupTreeStore::on_layer_status_changed(synfig::Layer::Handle handle,bool / (*iter)[model.layer]=handle; else { - synfig::warning("Couldn't find layer to be activated in layer list. Rebuilding index..."); + // Not need to send a warning when a layer changes its status and + // it is not found in any group. + //synfig::warning("Couldn't find layer to be activated in layer list. Rebuilding index..."); rebuild(); } } -- 2.7.4