From bfe7abfdae18c1aa27149063a6138fe8b18840dc Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 6 Jun 2015 12:31:45 +0200 Subject: [PATCH] UASManager: Add signal to indicate deletion of UAS with ID --- src/uas/UASManager.cc | 1 + src/uas/UASManagerInterface.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/uas/UASManager.cc b/src/uas/UASManager.cc index 5e015709f..23ccb3a64 100644 --- a/src/uas/UASManager.cc +++ b/src/uas/UASManager.cc @@ -340,6 +340,7 @@ void UASManager::removeUAS(UASInterface* uas) // Notify other UI elements that a UAS is being deleted before finally deleting it. qDebug() << "Deleting UAS object: " << uas->getUASName(); emit UASDeleted(uas); + emit UASDeleted(uas->getUASID()); uas->deleteLater(); } } diff --git a/src/uas/UASManagerInterface.h b/src/uas/UASManagerInterface.h index c96c32655..cadf92bb8 100644 --- a/src/uas/UASManagerInterface.h +++ b/src/uas/UASManagerInterface.h @@ -98,6 +98,8 @@ signals: void UASCreated(UASInterface* UAS); /** A system was deleted */ void UASDeleted(UASInterface* UAS); + /** A system was deleted */ + void UASDeleted(int systemId); /** @brief The UAS currently under main operator control changed */ void activeUASSet(UASInterface* UAS); /** @brief The UAS currently under main operator control changed */ -- 2.22.0