Cleanup: handle Filter objects by value rather than by reference.
[dcpomatic.git] / src / lib / uploader.cc
index c5448e469b8c3175ab750496ae4672964cceeb08..f2a47f50ef5c49fa8e5151af02a989878e775563 100644 (file)
@@ -76,7 +76,7 @@ Uploader::upload_directory (boost::filesystem::path base, boost::filesystem::pat
                if (is_directory(i.path())) {
                        upload_directory (base, i.path(), transferred, total_size);
                } else {
-                       _set_status (String::compose(_("copying %1"), i.path().leaf()));
+                       _set_status(String::compose(_("copying %1"), i.path().filename()));
                        upload_file (i.path(), remove_prefix (base, i.path()), transferred, total_size);
                }
        }