From 4ab5c6d9dee9f7b33fe395ec0a78a0a4ad9b92ad Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 5 Oct 2011 01:54:33 +0100 Subject: [PATCH] web: fix selecting the active tab Fix selecting the active tab in the details panel, it seems that the activeTab property wasn't working so explicitly call setActiveTab after adding in the various panels. --- deluge/ui/web/js/deluge-all/details/DetailsPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-all/details/DetailsPanel.js b/deluge/ui/web/js/deluge-all/details/DetailsPanel.js index e90200730..6e0c7cc44 100644 --- a/deluge/ui/web/js/deluge-all/details/DetailsPanel.js +++ b/deluge/ui/web/js/deluge-all/details/DetailsPanel.js @@ -43,7 +43,6 @@ Ext.define('Deluge.details.DetailsPanel', { minSize: 100, collapsible: true, margins: '0 5 5 5', - activeTab: 0, initComponent: function() { this.callParent(arguments); @@ -52,6 +51,7 @@ Ext.define('Deluge.details.DetailsPanel', { this.add(Ext.create('Deluge.details.FilesTab')); this.add(Ext.create('Deluge.details.PeersTab')); this.add(Ext.create('Deluge.details.OptionsTab')); + this.setActiveTab(0); }, clear: function() {