[gnome-documents] application: Do not unconditionally enable edit-current in PREVIEW



commit 494fe2a66d9ffdf15f2f3243e865fe4a58688db3
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 5 17:16:46 2014 +0100

    application: Do not unconditionally enable edit-current in PREVIEW
    
    While the action is only meant to be enabled in PREVIEW, it can only
    be enabled for documents that can be edited. This logic is already
    encoded in EditView and the window_mode was trampling over it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723491

 src/application.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 8823f32..3e52b82 100644
--- a/src/application.js
+++ b/src/application.js
@@ -428,8 +428,7 @@ const Application = new Lang.Class({
             { name: 'open-current',
               callback: this._onActionOpenCurrent,
               window_mode: WindowMode.WindowMode.PREVIEW },
-            { name: 'edit-current',
-              window_mode: WindowMode.WindowMode.PREVIEW },
+            { name: 'edit-current' },
             { name: 'view-current',
               window_mode: WindowMode.WindowMode.EDIT },
             { name: 'present-current',


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