Fallback to the default export path when the saved export path is not found.
Previously we would end up with an export path of top level session directory.
This commit is contained in:
parent
9e6b85f330
commit
d2ba90b2c1
@ -128,8 +128,9 @@ ExportFilename::set_state (const XMLNode & node)
|
|||||||
if (child->get_property ("path", tmp)) {
|
if (child->get_property ("path", tmp)) {
|
||||||
tmp = Glib::build_filename (folder, tmp);
|
tmp = Glib::build_filename (folder, tmp);
|
||||||
if (!Glib::file_test (tmp, Glib::FILE_TEST_EXISTS)) {
|
if (!Glib::file_test (tmp, Glib::FILE_TEST_EXISTS)) {
|
||||||
warning << string_compose (_("Existing export folder for this session (%1) does not exist - ignored"), tmp) << endmsg;
|
warning << string_compose (_("Existing export folder for this session (%1) does not exist - using default"), tmp) << endmsg;
|
||||||
} else {
|
folder = session.session_directory().export_path();
|
||||||
|
} else {
|
||||||
folder = tmp;
|
folder = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user