diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-06 14:22:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-06 14:22:33 +0000 |
| commit | f9819a16d40403af3da08263ee6bb3b5a99d650f (patch) | |
| tree | b59fdf315a46309f6d6ef324388b0f4530cff7e0 /src/tools | |
| parent | 3a51cc23de37ff0821009af780ef56e0e28394f7 (diff) | |
Give a warning on make DCP if it seems unlikely that the disk will have enough space to store the finished DCP (#92).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 9 |
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); } |
