[gnome-documents] application: disconnect JS signals when clearing state
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: disconnect JS signals when clearing state
- Date: Mon, 10 Mar 2014 14:17:52 +0000 (UTC)
commit d39ff975464d75553b7d136e6172ef1ce5b88838
Author: Marta Milakovic <marta milakovic gmail com>
Date: Sun Mar 9 23:25:30 2014 +0100
application: disconnect JS signals when clearing state
The IndexingNotification object connects to the JS signal 'miner-progress' but doesn't
disconnect which is the problem because the gnome-documents-service keeps running over
multiple instances of gnome-documents.
This patch disconnects the JS signal in the application cleanup function (_clearState).
https://bugzilla.gnome.org/show_bug.cgi?id=711421
src/application.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 3e52b82..edbcd43 100644
--- a/src/application.js
+++ b/src/application.js
@@ -529,6 +529,7 @@ const Application = new Lang.Class({
trackerController.disconnectAll();
selectionController.disconnectAll();
modeController.disconnectAll();
+ this.disconnectAllJS();
// reset state
documentManager.setActiveItem(null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]