diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index 8af95e039..00c603bbd 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -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); } }