From 703c0721961d459b6cbb80ad45d396543bda5865 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 28 Apr 2013 08:29:20 +0100 Subject: [PATCH] Fix out of range --- source/carla.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/carla.py b/source/carla.py index f815e9103..bbec5003f 100755 --- a/source/carla.py +++ b/source/carla.py @@ -1133,9 +1133,6 @@ class CarlaMainW(QMainWindow): if transportMode == TRANSPORT_MODE_JACK and audioDriver != "JACK": transportMode = TRANSPORT_MODE_INTERNAL - for x in range(maxCount): - self.fPluginList.append(None) - Carla.host.set_engine_option(OPTION_TRANSPORT_MODE, transportMode, "") # Peaks and TimeInfo @@ -1456,8 +1453,8 @@ class CarlaMainW(QMainWindow): self.ui.w_plugins.layout().addWidget(pwidget) + self.fPluginList.append(pwidget) self.fPluginCount += 1 - self.fPluginList[pluginId] = pwidget if not self.fProjectLoading: pwidget.setActive(True, True, True) @@ -1474,8 +1471,8 @@ class CarlaMainW(QMainWindow): if pwidget is None: return - self.fPluginList.pop(pluginId) self.fPluginCount -= 1 + self.fPluginList.pop(pluginId) self.ui.w_plugins.layout().removeWidget(pwidget)