projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f80f05
)
really fix opening session-archives -- amend 1f80f059be
author
Robin Gareus
<robin@gareus.org>
Sat, 6 May 2017 20:05:26 +0000
(22:05 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 6 May 2017 20:05:26 +0000
(22:05 +0200)
libs/ardour/find_session.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/find_session.cc
b/libs/ardour/find_session.cc
index 05f88d83b35fccbd622463adc6f46e43f545ff3d..5ee9f47cc3be16179a75e5832c8fdf9faca6b390 100644
(file)
--- 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;