[gnome-documents] selections: Unbreak opening in external application
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] selections: Unbreak opening in external application
- Date: Tue, 28 Mar 2017 08:35:21 +0000 (UTC)
commit 3a5984e76b71d5150cb55b2d9cdd5cbe99b3e8c1
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 27 18:11:02 2017 +0200
selections: Unbreak opening in external application
The selection is reset when exiting selection-mode. Hence the selection
needs to be queried before the mode is changed.
Fallout from e8b2d3431e44d30e4f8edb2c67c600784b81d567
https://bugzilla.gnome.org/show_bug.cgi?id=780602
src/selections.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index d143b1b..f00279c 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -986,9 +986,9 @@ const SelectionToolbar = new Lang.Class({
},
_onToolbarOpen: function(widget) {
+ let selection = Application.selectionController.getSelection();
this._overview.getAction('selection-mode').change_state(GLib.Variant.new('b', false));
- let selection = Application.selectionController.getSelection();
selection.forEach(Lang.bind(this,
function(urn) {
let doc = Application.documentManager.getItemById(urn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]