~ubuntu-branches/ubuntu/saucy/shotwell/saucy-proposed

« back to all changes in this revision

Viewing changes to src/MediaViewTracker.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Alberto Mardegan
  • Date: 2013-03-19 19:34:19 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20130319193419-ed5bq7690j3c8pp1
Tags: 0.14.0-0ubuntu1
* New upstream version
* debian/control: drop leftover build-depends on libgnomevfs2-dev

[ Alberto Mardegan]
* debian/patches/06_uoa.patch: new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    public bool uninclude(DataObject object) {
54
54
        DataSource source = ((DataView) object).get_source();
55
55
        
56
 
        assert(total > 0);
 
56
        if (total < 1) {
 
57
            warning("Tried to remove DataObject %s from empty %s (%s)".printf(object.to_string(),
 
58
                get_type().name(), to_string()));
 
59
            return false;
 
60
        }
57
61
        total--;
58
62
        
59
63
        Photo? photo = source as Photo;