From f9819a16d40403af3da08263ee6bb3b5a99d650f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Jan 2014 14:22:33 +0000 Subject: Give a warning on make DCP if it seems unlikely that the disk will have enough space to store the finished DCP (#92). --- src/tools/dcpomatic.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tools') diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 891c4623c..7cbb08725 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -442,6 +442,15 @@ private: void jobs_make_dcp () { + double required; + double available; + + if (!film->should_be_enough_disk_space (required, available)) { + if (!confirm_dialog (this, wxString::Format (_("The DCP for this film will take up about %.1f Gb, and the disk that you are using only has %.1f Gb available. Do you want to continue anyway?"), required, available))) { + return; + } + } + JobWrapper::make_dcp (this, film); } -- cgit v1.2.3