Move region naming stuff from Session into RegionFactory, cleaning up some vestiges...
[ardour.git] / gtk2_ardour / editor_ops.cc
index f7fe6e7b4ad74bf95e310eafc66c575817731882..f9022a04ff6d1dd243323ccb2830cc76a14aa829 100644 (file)
@@ -2668,7 +2668,7 @@ Editor::region_from_selection ()
                }
 
                internal_start = start - current->position();
-               _session->region_name (new_name, current->name(), true);
+               RegionFactory::region_name (new_name, current->name(), true);
 
                PropertyList plist; 
                
@@ -2708,7 +2708,7 @@ Editor::create_region_from_selection (vector<boost::shared_ptr<Region> >& new_re
                }
 
                internal_start = start - current->position();
-               _session->region_name (new_name, current->name(), true);
+               RegionFactory::region_name (new_name, current->name(), true);
 
                PropertyList plist; 
                
@@ -5927,7 +5927,7 @@ Editor::split_region_at_points (boost::shared_ptr<Region> r, AnalysisFeatureList
 
                string new_name;
 
-               if (_session->region_name (new_name, r->name())) {
+               if (RegionFactory::region_name (new_name, r->name())) {
                        break;
                }