[gnome-documents/gnome-3-20] 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-20] documents: Check whether it is a collection in canPrint
- Date: Tue, 20 Jun 2017 08:32:55 +0000 (UTC)
commit 233b5aa67b2e29ba50cda2a5e59f1e527131ad27
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 9eec7bd..4ca12c4 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -383,6 +383,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]