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
@ -104,7 +104,10 @@ void
|
|||||||
SessionImportDialog::load_session (const string& filename)
|
SessionImportDialog::load_session (const string& filename)
|
||||||
{
|
{
|
||||||
if (_session) {
|
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<AudioRegionImportHandler> region_handler (new AudioRegionImportHandler (tree, *_session));
|
||||||
boost::shared_ptr<AudioPlaylistImportHandler> pl_handler (new AudioPlaylistImportHandler (tree, *_session, *region_handler));
|
boost::shared_ptr<AudioPlaylistImportHandler> pl_handler (new AudioPlaylistImportHandler (tree, *_session, *region_handler));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user