fix the header click event handler
This commit is contained in:
parent
0f12200f6f
commit
5b6faa47b0
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue