X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FDisconnectPhotoFunction.java;h=96e039dbe8856475f8a3fd464180ba606f64399a;hp=6223433ef5f21ad06a3287a9988c4cac744bed09;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hpb=eebbb64b5d63f9eea43a0dff908c30361a376768 diff --git a/tim/prune/function/DisconnectPhotoFunction.java b/tim/prune/function/DisconnectPhotoFunction.java index 6223433..96e039d 100644 --- a/tim/prune/function/DisconnectPhotoFunction.java +++ b/tim/prune/function/DisconnectPhotoFunction.java @@ -36,7 +36,7 @@ public class DisconnectPhotoFunction extends GenericFunction if (photo != null && photo.getDataPoint() != null) { DataPoint point = photo.getDataPoint(); - UndoDisconnectMedia undo = new UndoDisconnectMedia(point, true, false, photo.getFile().getName()); + UndoDisconnectMedia undo = new UndoDisconnectMedia(point, true, false, photo.getName()); // disconnect photo.setDataPoint(null); point.setPhoto(null);