Do not perform action when ALT-draging first keyframe
authorCarlos Lopez <carlos@pcnuevo.(none)>
Sat, 25 Jul 2009 09:18:48 +0000 (11:18 +0200)
committerCarlos Lopez <carlos@pcnuevo.(none)>
Sat, 25 Jul 2009 09:18:48 +0000 (11:18 +0200)
synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp

index 4c83d14..ace2b98 100644 (file)
@@ -193,8 +193,12 @@ Widget_Keyframe_List::perform_move_kf(bool delta=false)
        kf_list_->find_prev_next(selected_kf_time, prev, next);
        // Not possible to set delta to the first keyframe
        // perform normal movement
-       if (prev==Time::begin()) delta = false;
-
+       // As suggested by Zelgadis it is better to not perform anything.
+       if (prev==Time::begin() && delta==true)
+       {
+               synfig::info(_("Not possible to ALT-drag the first keyframe"));
+               return false;
+       }
        if(!delta)
                {
                        synfigapp::Action::Handle action(synfigapp::Action::create("KeyframeSet"));