projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5e1dc85
)
Don't crash when trying to create a film in a bad location.
author
Carl Hetherington
<cth@carlh.net>
Thu, 22 Mar 2018 23:32:20 +0000
(23:32 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 22 Mar 2018 23:32:20 +0000
(23:32 +0000)
src/tools/dcpomatic.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic.cc
b/src/tools/dcpomatic.cc
index 1e6c49d7bc592f2e9e67533eaf5dd69c92333c7a..2285cccffe8f5b079833eb42f6d00602d9ef2857 100644
(file)
--- a/
src/tools/dcpomatic.cc
+++ b/
src/tools/dcpomatic.cc
@@
-427,7
+427,11
@@
private:
int const r = d->ShowModal ();
if (r == wxID_OK && d->check_path() && maybe_save_then_delete_film<FilmChangedClosingDialog>()) {
- new_film (d->path(), d->template_name());
+ try {
+ new_film (d->path(), d->template_name());
+ } catch (boost::filesystem::filesystem_error& e) {
+ error_dialog (this, _("Could not create folder to store film"), std_to_wx(e.what()));
+ }
}
d->Destroy ();