LIB: make interaction with FileOperation more safe

We now don't safe an AnchoredFile anymore, but a Path and
construct the AnchoredFile just before the operation is carried out.

This means the copy and move buffers cannot contain stale references
to files that don't exist anymore.
This commit is contained in:
2016-04-10 18:52:51 +02:00
parent bd022956f5
commit 48edf7d47b
4 changed files with 60 additions and 35 deletions

View File

@@ -101,7 +101,7 @@ data MyView = MkMyView {
, rawModel :: TVar (ListStore Item)
, sortedModel :: TVar (TypedTreeModelSort Item)
, filteredModel :: TVar (TypedTreeModelFilter Item)
, operationBuffer :: TVar (FileOperation FileInfo)
, operationBuffer :: TVar FileOperation
, inotify :: MVar INotify
}