X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Fsrc%2Fgtkmm%2Fstate_sketch.cpp;h=db441af9bb4aa2eecaa14093c2cffcc8e7d68c10;hb=c2ec9c5bdc4e8b21ab86a5a1c0825b07003f28c3;hp=0cac528a0c70099e27aa9b9e9236e935b2258b3a;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-studio/src/gtkmm/state_sketch.cpp b/synfig-studio/src/gtkmm/state_sketch.cpp index 0cac528..db441af 100644 --- a/synfig-studio/src/gtkmm/state_sketch.cpp +++ b/synfig-studio/src/gtkmm/state_sketch.cpp @@ -36,6 +36,7 @@ #include #include "state_sketch.h" +#include "state_normal.h" #include "state_stroke.h" #include "canvasview.h" #include "workarea.h" @@ -230,7 +231,7 @@ StateSketch_Context::toggle_show_sketch() } StateSketch_Context::StateSketch_Context(CanvasView* canvas_view): - action_group(Gtk::ActionGroup::create()), + action_group(Gtk::ActionGroup::create("action_group_state_sketch")), canvas_view_(canvas_view), is_working(*canvas_view), prev_workarea_layer_status_(get_work_area()->get_allow_layer_clicks()), @@ -465,7 +466,9 @@ StateSketch_Context::event_yield_tool_options(const Smach::event& /*x*/) Smach::event_result StateSketch_Context::event_stop_handler(const Smach::event& /*x*/) { - throw Smach::egress_exception(); + //throw Smach::egress_exception(); + throw &state_normal; + return Smach::RESULT_OK; } Smach::event_result