]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/MediaList.java
Version 15, March 2013
[GpsPrune.git] / tim / prune / data / MediaList.java
index d7b4780e7cd6e32447dcaa77e10976cb73a9923f..cc30325f8cc12751e2943dae6da6540bba4e953f 100644 (file)
@@ -172,7 +172,7 @@ public abstract class MediaList
        public boolean hasUncorrelatedMedia()
        {
                for (MediaObject m : _media) {
-                       if (m.getDataPoint() == null) {
+                       if (m.getDataPoint() == null && m.hasTimestamp()) {
                                return true;
                        }
                }
@@ -219,6 +219,19 @@ public abstract class MediaList
                return false;
        }
 
+       /**
+        * @return true if there are any modified media in the list
+        */
+       public boolean hasModifiedMedia()
+       {
+               for (MediaObject m: _media) {
+                       if (m.isModified()) {
+                               return true;
+                       }
+               }
+               return false;
+       }
+
        /**
         * @return clone of list contents
         */