[gnome-documents/gnome-3-24] documents: Check whether it is a collection in canPrint



commit eaeb5ff4077fdfffdc9e3a656e4c24f6a17680d8
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 7 14:16:17 2017 +0200

    documents: Check whether it is a collection in canPrint
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781533

 src/documents.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 18d32a6..c620dd4 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -459,6 +459,9 @@ const DocCommon = new Lang.Class({
     },
 
     canPrint: function(docModel) {
+        if (this.collection)
+            return false;
+
         if (!docModel)
             return false;
 


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