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
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});