#include "route_ui.h"
#include "gui_thread.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace std;
using namespace Gtk;
{
rui = 0;
- set_position (WIN_POS_MOUSE);
set_name ("PlaylistSelectorWindow");
set_modal(true);
add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK);
for (TrackPlaylistMap::iterator x = trpl_map.begin(); x != trpl_map.end(); ++x) {
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;
- if (tr->name().empty()) {
+ if (!tr || tr->name().empty()) {
nodename = _("unassigned");
} else {
nodename = tr->name().c_str();
return;
}
- at->use_playlist (apl);
+ at->use_playlist (DataType::AUDIO, apl);
hide ();
}