Superficial code cleanup.
[ardour.git] / gtk2_ardour / export_range_markers_dialog.cc
index 8bb93eb4aa0214e8d19880be37f9e9e60fbad0ac..bf2f0e3989aba2f44ca00dfbb45895a1badfcc67 100644 (file)
@@ -81,8 +81,6 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList&
                        spec.start_frame = currentLocation->start();
                        spec.end_frame = currentLocation->end();
 
-                       getSession().request_locate(spec.start_frame, false);
-
                        if (getSession().start_export(spec)){
                                // if export fails                      
                                return;
@@ -100,6 +98,8 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList&
                        }
                        
                        current_range_marker_index++;
+                       
+                       getSession().stop_export (spec);
                }
        }