[gnome-documents/gnome-3-10] application: Do not unconditionally enable edit-current in PREVIEW
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-10] application: Do not unconditionally enable edit-current in PREVIEW
- Date: Thu, 6 Mar 2014 10:33:00 +0000 (UTC)
commit cda975909c5c0c43baf2afef33e7d43581cce1e9
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 1d68686..ec40c97 100644
--- a/src/application.js
+++ b/src/application.js
@@ -427,8 +427,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]