_list->DeleteAllItems ();
_playlists.clear ();
- for (auto i: dcp::filesystem::directory_iterator(*path)) {
- auto spl = make_shared<SignalSPL>();
- try {
- spl->read (i, _content_store);
- add_playlist_to_model (spl);
- } catch (...) {}
- }
+ try {
+ for (auto i: dcp::filesystem::directory_iterator(*path)) {
+ auto spl = make_shared<SignalSPL>();
+ try {
+ spl->read (i, _content_store);
+ add_playlist_to_model (spl);
+ } catch (...) {}
+ }
+ } catch (...) {}
for (auto i: _playlists) {
add_playlist_to_view (i);
_list->AppendColumn (_("Type"), wxLIST_FORMAT_LEFT, 100);
_list->AppendColumn (_("Encrypted"), wxLIST_FORMAT_CENTRE, 90);
- auto images = new wxImageList (16, 16);
- wxIcon tick_icon;
- wxIcon no_tick_icon;
- tick_icon.LoadFile (bitmap_path("tick.png"), wxBITMAP_TYPE_PNG);
- no_tick_icon.LoadFile (bitmap_path("no_tick.png"), wxBITMAP_TYPE_PNG);
- images->Add (tick_icon);
- images->Add (no_tick_icon);
-
- _list->SetImageList (images, wxIMAGE_LIST_SMALL);
-
list->Add (_list, 1, wxEXPAND | wxALL, DCPOMATIC_SIZER_GAP);
auto button_sizer = new wxBoxSizer (wxVERTICAL);
{
auto file = new wxMenu;
#ifdef __WXOSX__
- file->Append (wxID_PREFERENCES, _("&Preferences...\tCtrl-P"));
+ file->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
file->Append (wxID_EXIT, _("&Exit"));
#else
file->Append (wxID_EXIT, _("&Quit"));