Browse Source

Some little thing just to be safe

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
falkTX 5 years ago
parent
commit
3317a436fb
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      source/backend/plugin/CarlaPluginLV2.cpp

+ 4
- 3
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -1595,8 +1595,9 @@ public:

uint32_t portIndex;
const LV2_Atom* atom;
const bool hasPortEvent(fUI.handle != nullptr && fUI.descriptor != nullptr &&
fUI.descriptor->port_event != nullptr && ! fNeedsUiClose);
const bool hasPortEvent(fUI.handle != nullptr &&
fUI.descriptor != nullptr &&
fUI.descriptor->port_event != nullptr);

for (; tmpRingBuffer.get(atom, portIndex);)
{
@@ -1607,7 +1608,7 @@ public:
}
else
{
if (hasPortEvent)
if (hasPortEvent && ! fNeedsUiClose)
fUI.descriptor->port_event(fUI.handle, portIndex, lv2_atom_total_size(atom), kUridAtomTransferEvent, atom);
}
}


Loading…
Cancel
Save