diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-24 00:37:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-24 00:37:31 +0200 |
| commit | 6b0a17aa9e87e914666e696b251555b934cfb811 (patch) | |
| tree | a363c6110827777659942fb30ca3197499de2bc1 /src/tools/dcpomatic_disk.cc | |
| parent | f83e23c59f4684fae3453e13bcc569ee94aa2a9e (diff) | |
Add pre-running warning to disk writer.
Diffstat (limited to 'src/tools/dcpomatic_disk.cc')
| -rw-r--r-- | src/tools/dcpomatic_disk.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc index bf4d45e20..1d8fac83a 100644 --- a/src/tools/dcpomatic_disk.cc +++ b/src/tools/dcpomatic_disk.cc @@ -24,6 +24,7 @@ #include "wx/drive_wipe_warning_dialog.h" #include "wx/try_unmount_dialog.h" #include "wx/message_dialog.h" +#include "wx/disk_warning_dialog.h" #include "lib/file_log.h" #include "lib/dcpomatic_log.h" #include "lib/util.h" @@ -300,6 +301,12 @@ public: */ Config::drop (); + DiskWarningDialog* warning = new DiskWarningDialog (); + warning->ShowModal (); + if (!warning->confirmed()) { + return false; + } + _frame = new DOMFrame (_("DCP-o-matic Disk Writer")); SetTopWindow (_frame); @@ -311,6 +318,7 @@ public: catch (exception& e) { error_dialog (0, wxString::Format ("DCP-o-matic could not start."), std_to_wx(e.what())); + return false; } return true; |
