[gnome-documents/gnome-3-22] preview: fix check for open action sensitivity



commit 165d939523fd714cbe430eff43e9ae52e079ea44
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Oct 30 22:11:31 2016 -0700

    preview: fix check for open action sensitivity
    
    We have to use the app name, since the default app may not be there for
    web documents.

 src/preview.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 6734a22..29ca3f1 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -185,7 +185,7 @@ const Preview = new Lang.Class({
         this._spinner.stop();
 
         this.set_visible_child_name('view');
-        this.getAction('open-current').enabled = (doc.defaultApp != null);
+        this.getAction('open-current').enabled = (doc.defaultAppName != null);
     },
 
     onLoadError: function(manager, doc, message, exception) {


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