[gnome-music] Remove the JS Error when closing app
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Remove the JS Error when closing app
- Date: Sun, 19 May 2013 22:48:51 +0000 (UTC)
commit 6f7b8b308302fe3c75e99089947acf226ecf78f0
Author: Shivani Poddar <shivani poddar92 gmail com>
Date: Mon May 20 04:12:34 2013 +0530
Remove the JS Error when closing app
Signed-off-by: Seif Lotfy <seif lotfy com>
src/window.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 97c070d..4b859a1 100644
--- a/src/window.js
+++ b/src/window.js
@@ -87,8 +87,11 @@ const MainWindow = new Lang.Class({
);
}
- this._stack.connect("notify::visible-child", this._onNotifyMode);
-
+ this._onNotifyModelId = this._stack.connect("notify::visible-child", this._onNotifyMode);
+ this.connect("destroy",Lang.bind(this, function(){
+ this._stack.disconnect(this._onNotifyModelId);
+ }));
+
this.views[0].populate();
}
//To revert to the No Music View when no songs are found
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]