From 6ad6aa28f86c24b6a94fc370c0cd0397fec58953 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Mon, 21 Nov 2022 14:25:12 -0500 Subject: [PATCH] don't remove last universe if holding the look --- protocol/sacn/arbitratinguniverse.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocol/sacn/arbitratinguniverse.cpp b/protocol/sacn/arbitratinguniverse.cpp index af372d2..3d6923b 100644 --- a/protocol/sacn/arbitratinguniverse.cpp +++ b/protocol/sacn/arbitratinguniverse.cpp @@ -120,6 +120,10 @@ void ArbitratingUniverse::deleteSourceUniverse(const DATA::data_header& src) { if (!hasSourceUniverse(src)) return; + + if (sources_.size() == 1 && HoldLastLook) + return; + sources_.erase(src); doListChangeCallbacks(); }