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



commit 9eeacde05134fb4cc9a07d8c1d793a4925063aad
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 faac2cb..2569000 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1386,7 +1386,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]