summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-21 13:48:43 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-21 13:48:43 +0100
commitc8989c45d2b8721c7d6b7a47a253b9a527f64f52 (patch)
tree83b5fb4d556965b97748dbb401f2b3113f18b076 /src/tools
parent5ec26979d2547b7444c4e1f00aa76d86d22f4c84 (diff)
Add dialogue to choose DVD title when ripping.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dvdomatic.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc
index 803eec3c4..97fd984d3 100644
--- a/src/tools/dvdomatic.cc
+++ b/src/tools/dvdomatic.cc
@@ -26,12 +26,15 @@
#include "gtk/config_dialog.h"
#include "gtk/gpl.h"
#include "gtk/job_wrapper.h"
+#include "gtk/dvd_title_dialog.h"
+#include "gtk/gtk_util.h"
#include "lib/film.h"
#include "lib/format.h"
#include "lib/config.h"
#include "lib/filter.h"
#include "lib/util.h"
#include "lib/scaler.h"
+#include "lib/exceptions.h"
using namespace std;
using namespace boost;
@@ -162,7 +165,15 @@ jobs_make_dcp_from_existing_transcode ()
void
jobs_copy_from_dvd ()
{
- film->copy_from_dvd ();
+ try {
+ DVDTitleDialog d;
+ if (d.run () != Gtk::RESPONSE_OK) {
+ return;
+ }
+ film->copy_from_dvd ();
+ } catch (DVDError& e) {
+ error_dialog (e.what ());
+ }
}
void