1. 28 Jan, 2014 1 commit
  2. 23 Oct, 2013 1 commit
  3. 02 Nov, 2012 1 commit
    • Federico Mena Quintero's avatar
      bgo#687196 - Fix model corruption during file removal · ea3a750f
      Federico Mena Quintero authored
      The main problem is that we were emitting the row-deleted signal for the model in the middle
      of the process that actually deletes the row from the model (remove the row from the array,
      update the model->file_lookup hash table, etc.).  In the model's caller, one of the row-deleted
      callbacks was requesting an iter, which caused the model to revalidate itself - but it did
      this while it was in an inconsistent state.  This led to an assertion failure later when the
      model resorted itself.
      
      The fix in remove_file() is like this:
      
      * The filteredness/visibility of the deleted node is not updated.  The
        node will simply be gone; we don't need to update those values at
        all.
      
      * We invalidate just the node that is being deleted.
      
      * The model->file_lookup hash table is not completely nuked; instead,
        we carefully adjust its indices.
      
      * The row-deleted signal is only emitted at the very end, when
        deletion is complete and the model is consistent.
      
      Many thanks to William Hua for doing the detective work on this bug!
      Signed-off-by: Federico Mena Quintero's avatarFederico Mena Quintero <federico@gnome.org>
      ea3a750f
  4. 01 Nov, 2012 4 commits
  5. 15 Jul, 2012 5 commits
  6. 27 Feb, 2012 1 commit
  7. 16 Dec, 2011 1 commit
  8. 03 Oct, 2011 1 commit
  9. 28 Mar, 2011 1 commit
  10. 24 Aug, 2010 1 commit
  11. 10 Jul, 2010 1 commit
  12. 28 Jun, 2010 3 commits
  13. 02 May, 2010 1 commit
  14. 04 Apr, 2010 2 commits
  15. 29 Mar, 2010 1 commit
  16. 19 Feb, 2010 1 commit
  17. 02 Nov, 2009 1 commit
    • Benjamin Otte's avatar
      Don't keep the filesystem model alive while querying files · ba9f5339
      Benjamin Otte authored
      This allows disposing of the filesystemmodel while the file enumeration
      is still happening.
      As the filechooser does not disconnect its signals because it assumes it
      is the only owner of the model, this also prevents a SEGV when emitting
      the "load-finished" signal in that case.
      ba9f5339
  18. 15 Oct, 2009 13 commits