[gnome-documents] selections: Add a comment
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] selections: Add a comment
- Date: Tue, 12 Aug 2014 08:05:59 +0000 (UTC)
commit ae092260842f9dc2b9c25d9af9e03799c8546a69
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Aug 12 10:05:47 2014 +0200
selections: Add a comment
src/selections.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index 249f918..747cc50 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -906,6 +906,8 @@ const SelectionToolbar = new Lang.Class({
docs.push(doc);
}));
+ // Removing an item from DocumentManager changes the selection, so
+ // we can't use the selection while removing items.
docs.forEach(Lang.bind(this,
function(doc) {
Application.documentManager.removeItem(doc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]