clear the details pane when there are no selected torrents in the grid

This commit is contained in:
Damien Churchill 2009-03-21 11:53:05 +00:00
parent 6adb10b62a
commit c143891c93

View File

@ -31,7 +31,10 @@ Deluge.Details = {
update: function(tab) {
var torrent = Deluge.Torrents.getSelected();
if (!torrent) return;
if (!torrent) {
this.clear();
return;
}
tab = tab || this.Panel.getActiveTab();
if (tab.update) {