X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fstate_eyedrop.cpp;h=dcd57a1f7c17a5221c1ec348f4753f83ea8637f7;hb=9047a65b015ec9d7eb093b74229680b76f88564a;hp=6fb940d85a644f44084da74fb2d70363753b29c0;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-studio/src/gtkmm/state_eyedrop.cpp b/synfig-studio/src/gtkmm/state_eyedrop.cpp index 6fb940d..dcd57a1 100644 --- a/synfig-studio/src/gtkmm/state_eyedrop.cpp +++ b/synfig-studio/src/gtkmm/state_eyedrop.cpp @@ -30,6 +30,7 @@ #endif #include "state_eyedrop.h" +#include "state_normal.h" #include "workarea.h" #include #include "app.h" @@ -113,8 +114,10 @@ StateEyedrop_Context::~StateEyedrop_Context() Smach::event_result StateEyedrop_Context::event_stop_handler(const Smach::event& /*x*/) { - synfig::info("STATE EYEDROP: Received Stop Event"); - throw Smach::egress_exception(); + //synfig::info("STATE EYEDROP: Received Stop Event"); + //throw Smach::egress_exception(); + throw &state_normal; + return Smach::RESULT_OK; // canvas_view->get_smach().pop_state(); // return Smach::RESULT_ACCEPT; }