mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix or band-aid for #3649 (loading a session file might fail when using the session importer)
git-svn-id: svn://localhost/ardour2/branches/3.0@8414 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5b8472314e
commit
d4f2f9a57e
1 changed files with 4 additions and 1 deletions
|
|
@ -104,7 +104,10 @@ void
|
|||
SessionImportDialog::load_session (const string& filename)
|
||||
{
|
||||
if (_session) {
|
||||
tree.read (filename);
|
||||
if (tree.read (filename)) {
|
||||
error << string_compose (_("Cannot load XML for session from %1", filename)) << endmsg;
|
||||
return;
|
||||
}
|
||||
boost::shared_ptr<AudioRegionImportHandler> region_handler (new AudioRegionImportHandler (tree, *_session));
|
||||
boost::shared_ptr<AudioPlaylistImportHandler> pl_handler (new AudioPlaylistImportHandler (tree, *_session, *region_handler));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue