[gnome-documents] documents: Fix continuous mode never being disabled



commit 94badd579a1089a09a272ddb93d765c11613d65a
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Jun 4 19:54:21 2016 +0200

    documents: Fix continuous mode never being disabled
    
    A typo in commit de4139f2 made the call dependent on the
    this._activeModel variable existing. Except that it's not called
    activeModel but activeDocModel.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767253

 src/documents.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 78ff105..80ac38b 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1389,7 +1389,7 @@ const DocumentManager = new Lang.Class({
 
         // save loaded model and signal
         this._activeDocModel = docModel;
-        if (this._activeModel)
+        if (this._activeDocModel)
             this._activeDocModel.set_continuous(false);
 
         // load metadata


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