summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-11 13:59:17 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-11 13:59:17 +0000
commit341e6cb241c95e052742628b5e7967662a552a51 (patch)
treeb02480655a6b5668ffc3d98bc77db6c5e9fdacc6 /src/tools
parent60990830b23f295d218b6ae549654e5c67a7bdff (diff)
Various small UI tidy-ups.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dvdomatic.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc
index 535e6d749..46c53e7f7 100644
--- a/src/tools/dvdomatic.cc
+++ b/src/tools/dvdomatic.cc
@@ -265,6 +265,12 @@ public:
int const r = d->ShowModal ();
if (r == wxID_OK) {
+
+ if (boost::filesystem::exists (d->get_path())) {
+ error_dialog (this, String::compose ("The directory %1 already exists.", d->get_path()));
+ return;
+ }
+
maybe_save_then_delete_film ();
film.reset (new Film (d->get_path (), false));
#if BOOST_FILESYSTEM_VERSION == 3