Plugins: replace get_editable with get_flags, add support more MovieSource flags
[cinaest] / src / movie-list-store.vala
index 5957fe6..7a9d208 100644 (file)
@@ -82,7 +82,7 @@ public class MovieListStore : ListStore, TreeModel {
                        movie.notify.disconnect (this.on_movie_changed);
                        base.remove (iter);
 
-                       if (source.get_editable ()) {
+                       if (SourceFlags.EDITABLE in source.get_flags ()) {
                                source.delete_movie (movie);
                        }
 
@@ -103,7 +103,7 @@ public class MovieListStore : ListStore, TreeModel {
        }
 
        public bool get_editable () {
-               return source.get_editable ();
+               return (SourceFlags.EDITABLE in source.get_flags ());
        }
 
        public bool get_iter_from_movie (out TreeIter iter, Movie movie_a) {