diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-26 23:50:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-26 23:50:43 +0100 |
| commit | 28dbf4fd074d2046a3c8ddebac9a537a80fd457a (patch) | |
| tree | e2bed7c7aed8c74969f1a25d7bdf948815b4b057 /src/tools | |
| parent | f861018389acd9d277fe34d7621182b9b54f977f (diff) | |
| parent | 87a709a4ea5dffaadaf35ef94edb4b578eb3b56c (diff) | |
Merge branch 'master' into 1.0
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index e053da534..4312139f1 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -299,9 +299,17 @@ private: if (r == wxID_OK) { - if (boost::filesystem::exists (d->get_path())) { - error_dialog (this, std_to_wx (String::compose (wx_to_std (_("The directory %1 already exists.")), d->get_path().c_str()))); - return; + if (boost::filesystem::exists (d->get_path()) && !boost::filesystem::is_empty(d->get_path())) { + if (!confirm_dialog ( + this, + std_to_wx ( + String::compose (wx_to_std (_("The directory %1 already exists and is not empty. " + "Are you sure you want to use it?")), + d->get_path().c_str()) + ) + )) { + return; + } } maybe_save_then_delete_film (); |
