]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/MediaList.java
Version 15, March 2013
[GpsPrune.git] / tim / prune / data / MediaList.java
index c0f4408f3637a23e932679bd441449928ea5777e..cc30325f8cc12751e2943dae6da6540bba4e953f 100644 (file)
@@ -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
         */