[gnome-documents/gnome-3-22] documents: Check whether it is a collection in canPrint
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-22] documents: Check whether it is a collection in canPrint
- Date: Thu, 8 Jun 2017 08:28:20 +0000 (UTC)
commit 950e4f462816bf2af340e0d737116d491ea178e0
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 030ea62..a1a340f 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -453,6 +453,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]