Commit bfe7abfd authored by Lorenz Meier's avatar Lorenz Meier

UASManager: Add signal to indicate deletion of UAS with ID

parent 87326b17
...@@ -340,6 +340,7 @@ void UASManager::removeUAS(UASInterface* uas) ...@@ -340,6 +340,7 @@ void UASManager::removeUAS(UASInterface* uas)
// Notify other UI elements that a UAS is being deleted before finally deleting it. // Notify other UI elements that a UAS is being deleted before finally deleting it.
qDebug() << "Deleting UAS object: " << uas->getUASName(); qDebug() << "Deleting UAS object: " << uas->getUASName();
emit UASDeleted(uas); emit UASDeleted(uas);
emit UASDeleted(uas->getUASID());
uas->deleteLater(); uas->deleteLater();
} }
} }
......
...@@ -98,6 +98,8 @@ signals: ...@@ -98,6 +98,8 @@ signals:
void UASCreated(UASInterface* UAS); void UASCreated(UASInterface* UAS);
/** A system was deleted */ /** A system was deleted */
void UASDeleted(UASInterface* UAS); void UASDeleted(UASInterface* UAS);
/** A system was deleted */
void UASDeleted(int systemId);
/** @brief The UAS currently under main operator control changed */ /** @brief The UAS currently under main operator control changed */
void activeUASSet(UASInterface* UAS); void activeUASSet(UASInterface* UAS);
/** @brief The UAS currently under main operator control changed */ /** @brief The UAS currently under main operator control changed */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment