[gnome-documents] documents: reset the cancellable on load complete



commit e30f8d18ee23c81c5e08aae7df66fe5702665ccd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 21 12:12:46 2013 -0500

    documents: reset the cancellable on load complete
    
    So that we don't risk cancelling it later when pressing back.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692197

 src/documents.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index b48c589..14eaff4 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -928,6 +928,8 @@ const DocumentManager = new Lang.Class({
     },
 
     _onDocumentLoaded: function(doc, docModel, error) {
+        this._loaderCancellable = null;
+
         if (error) {
             this._onDocumentLoadError(doc, error);
             return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]