push2:small logic fix for destructor, mostly to ensure that the track_mix layout...
[ardour.git] / gtk2_ardour / location_ui.cc
index e41ad712e46c46eff10b4cd2db5663fa38539164..76111a49e767b8d779e5537beee4a3c4184c73bb 100644 (file)
@@ -37,7 +37,7 @@
 #include "tooltips.h"
 #include "ui_config.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -420,6 +420,9 @@ LocationEditRow::to_playhead_button_pressed (LocationPart part)
                        break;
                case LocEnd:
                        location->set_end (_session->transport_frame ());
+                       if (location->is_session_range()) {
+                               _session->set_end_is_free (false);
+                       }
                        break;
                default:
                        break;
@@ -464,9 +467,15 @@ LocationEditRow::clock_changed (LocationPart part)
                        break;
                case LocEnd:
                        location->set_end (end_clock.current_time());
+                       if (location->is_session_range()) {
+                               _session->set_end_is_free (false);
+                       }
                        break;
                case LocLength:
                        location->set_end (location->start() + length_clock.current_duration());
+                       if (location->is_session_range()) {
+                               _session->set_end_is_free (false);
+                       }
                default:
                        break;
        }