]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/DisconnectPhotoFunction.java
Version 13, August 2011
[GpsPrune.git] / tim / prune / function / DisconnectPhotoFunction.java
index 6223433ef5f21ad06a3287a9988c4cac744bed09..96e039dbe8856475f8a3fd464180ba606f64399a 100644 (file)
@@ -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);