Use plain git hash for VERSION when there is no exact tag.
[dcpomatic.git] / src / lib / create_cli.cc
index 6752be4094125f3d26dd7629f246b4215cec118b..1c2f2c6354fcf3ef4f2edf73096c9add9af39c22 100644 (file)
@@ -316,7 +316,7 @@ CreateCLI::CreateCLI (int argc, char* argv[])
        }
 
        if (_name.empty()) {
-               _name = content[0].path.leaf().string();
+               _name = content[0].path.filename().string();
        }
 
        if (_j2k_bandwidth && (*_j2k_bandwidth < 10000000 || *_j2k_bandwidth > Config::instance()->maximum_j2k_bandwidth())) {