diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dvdomatic.cc | 6 | ||||
| -rw-r--r-- | src/tools/test.cc | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index ea93436be..7700a38ef 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -259,6 +259,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 diff --git a/src/tools/test.cc b/src/tools/test.cc index f81814160..4baaeb73f 100644 --- a/src/tools/test.cc +++ b/src/tools/test.cc @@ -1,3 +1,22 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + #include <stdint.h> #include <boost/shared_ptr.hpp> #include "image.h" |
