Browse Source

Fix out of range

tags/1.9.4
falkTX 11 years ago
parent
commit
703c072196
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      source/carla.py

+ 2
- 5
source/carla.py View File

@@ -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)



Loading…
Cancel
Save