From 87822f001f31cb5698e5092dd978cfb0f3bad129 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 19 Jan 2013 00:42:17 +0000 Subject: [PATCH] Fix #1549 - webui: stop tabs being re-added. --- src/webui/static/app/tvheadend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 96bb66a3..cfaab734 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -242,6 +242,8 @@ tvheadend.VLC = function(url) { */ function accessUpdate(o) { tvheadend.accessUpdate = o; + if (!tvheadend.capabilities) + return; if (o.dvr == true && tvheadend.dvrpanel == null) { tvheadend.dvrpanel = new tvheadend.dvr; @@ -260,8 +262,6 @@ function accessUpdate(o) { new tvheadend.iptv, new tvheadend.acleditor ] }); tvheadend.rootTabPanel.add(tvheadend.confpanel); - } - if (tvheadend.capabilities && tvheadend.confpanel) { if (tvheadend.capabilities.indexOf('linuxdvb') != -1 || tvheadend.capabilities.indexOf('v4l') != -1) { tvheadend.confpanel.add(new tvheadend.tvadapters);