Module: deluge
Branch: master
Commit: 5b6faa47b02473ac40078064d211ac4ed4b4b793

Author: Damien Churchill <[email protected]>
Date:   Wed Apr 28 15:39:39 2010 +0100

fix the header click event handler

---

 deluge/ui/web/js/deluge-all/Sidebar.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/Sidebar.js 
b/deluge/ui/web/js/deluge-all/Sidebar.js
index d8e67f7..f669002 100644
--- a/deluge/ui/web/js/deluge-all/Sidebar.js
+++ b/deluge/ui/web/js/deluge-all/Sidebar.js
@@ -82,11 +82,11 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
                this.doLayout();
                this.panels[filter] = panel;
 
-               panel.header.on('click', function(panel) {
+               panel.header.on('click', function(header) {
                        if (!deluge.config.sidebar_multiple_filters) {
                                deluge.ui.update();
                        }
-                       if (panel.list.getSelectionCount()) {
+                       if (!panel.list.getSelectionCount()) {
                                panel.list.select(0);   
                        }
                });

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to