diff options
author | Robin Gareus <robin@gareus.org> | 2017-05-06 22:05:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-05-06 22:05:26 +0200 |
commit | e73755f8fb27c41a552acb4f8f6dedb6acbe8f32 (patch) | |
tree | 81876836dddbc2cf4ee64252ab2ad3e5babc0050 | |
parent | 1f80f059be5dae1fdda2387f5d297f17f4ab8fe4 (diff) |
really fix opening session-archives -- amend 1f80f059be
-rw-r--r-- | libs/ardour/find_session.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/find_session.cc b/libs/ardour/find_session.cc index 05f88d83b3..5ee9f47cc3 100644 --- a/libs/ardour/find_session.cc +++ b/libs/ardour/find_session.cc @@ -218,13 +218,10 @@ inflate_session (const std::string& zipfile, const std::string& target_dir, stri size_t sep = bn.find_first_of ('/'); - if (sep == string::npos) { - error << _("Archive does not contain a session folder") << endmsg; - return 3; + if (sep != string::npos) { + bn = bn.substr (0, sep); } - bn = bn.substr (0, sep); - if (bn.empty ()) { error << _("Archive does not contain a valid session structure") << endmsg; return 4; |