From 772512a62d89804b456eb23f563ea7605137029a Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 10 Jan 2021 14:43:39 +1100 Subject: [PATCH] pt import: Correct the log warning message when at least one audio file failed to load --- gtk2_ardour/editor_pt_import.cc | 2 +- libs/ardour/import_pt.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_pt_import.cc b/gtk2_ardour/editor_pt_import.cc index 0b551931ad..44b88ebeb1 100644 --- a/gtk2_ardour/editor_pt_import.cc +++ b/gtk2_ardour/editor_pt_import.cc @@ -113,7 +113,7 @@ Editor::external_pt_dialog () } else { import_pt_status.progress = 1.0; _session->import_pt_rest (import_ptf); - MessageDialog msg (_("PT import complete!")); + MessageDialog msg (_("PT import completed!\nSee log for specifics")); msg.run (); } } diff --git a/libs/ardour/import_pt.cc b/libs/ardour/import_pt.cc index edd09665db..8a8762d441 100644 --- a/libs/ardour/import_pt.cc +++ b/libs/ardour/import_pt.cc @@ -240,6 +240,8 @@ Session::import_pt_sources (PTFFormat& ptf, ImportStatus& status) ptfwavpair.push_back (p); pt_imported_sources.push_back (just_one_src.back ()); + } else { + onefailed = true; } }