X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoDeletePhoto.java;h=5edd37bfb664cb3a65fa1d52d37f097440d0bb97;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hp=cfc166271131eec1f41f6a79ba3bcfe8dd29a354;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b;p=GpsPrune.git diff --git a/tim/prune/undo/UndoDeletePhoto.java b/tim/prune/undo/UndoDeletePhoto.java index cfc1662..5edd37b 100644 --- a/tim/prune/undo/UndoDeletePhoto.java +++ b/tim/prune/undo/UndoDeletePhoto.java @@ -1,6 +1,7 @@ package tim.prune.undo; import tim.prune.I18nManager; +import tim.prune.UpdateMessageBroker; import tim.prune.data.DataPoint; import tim.prune.data.Photo; import tim.prune.data.TrackInfo; @@ -37,7 +38,7 @@ public class UndoDeletePhoto implements UndoOperation */ public String getDescription() { - String desc = I18nManager.getText("undo.deletephoto") + " " + _photo.getFile().getName(); + String desc = I18nManager.getText("undo.removephoto") + " " + _photo.getName(); return desc; } @@ -61,12 +62,11 @@ public class UndoDeletePhoto implements UndoOperation else { // update needed if not already triggered by track update - inTrackInfo.triggerUpdate(); + UpdateMessageBroker.informSubscribers(); } // Ensure that photo is associated with point and vice versa _photo.setDataPoint(_point); - if (_point != null) - { + if (_point != null) { _point.setPhoto(_photo); } }