fix the header click event handler

This commit is contained in:
Damien Churchill 2010-04-28 15:39:39 +01:00
parent 0f12200f6f
commit 5b6faa47b0

View File

@ -82,11 +82,11 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
this.doLayout(); this.doLayout();
this.panels[filter] = panel; this.panels[filter] = panel;
panel.header.on('click', function(panel) { panel.header.on('click', function(header) {
if (!deluge.config.sidebar_multiple_filters) { if (!deluge.config.sidebar_multiple_filters) {
deluge.ui.update(); deluge.ui.update();
} }
if (panel.list.getSelectionCount()) { if (!panel.list.getSelectionCount()) {
panel.list.select(0); panel.list.select(0);
} }
}); });