do not change Session::_transport_frame is a locate is pending
[ardour.git] / gtk2_ardour / playlist_selector.cc
index 35a64f38dd79b4fb485ead5e4d082246e152cf67..11d5d3a882fb8800b0e109c60ca43a50b16f508d 100644 (file)
@@ -31,7 +31,7 @@
 #include "route_ui.h"
 #include "gui_thread.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -119,18 +119,6 @@ PlaylistSelector::show_for (RouteUI* ruix)
 
                boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (_session->route_by_id (x->first));
 
-               /* legacy sessions stored the diskstream ID as the original
-                * playlist owner. so try there instead.
-                */
-
-               if (tr == 0) {
-                       tr = _session->track_by_diskstream_id (x->first);
-               }
-
-               if (tr == 0) {
-                       continue;
-               }
-
                /* add a node for the track */
 
                string nodename;
@@ -272,7 +260,7 @@ PlaylistSelector::selection_changed ()
                        return;
                }
 
-               at->use_playlist (apl);
+               at->use_playlist (DataType::AUDIO, apl);
 
                hide ();
        }