From 3317a436fbabf9d0e465e9e05ef2fe238e55c9fb Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 22 Jan 2019 20:50:37 +0100 Subject: [PATCH] Some little thing just to be safe Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginLV2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } }