diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js index f8d9a4296..8892d6ff2 100644 --- a/deluge/ui/web/js/deluge-details.js +++ b/deluge/ui/web/js/deluge-details.js @@ -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) {