summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc9
1 files changed, 9 insertions, 0 deletions
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);
}