From 2421a3893111dba2b94775f84f960238801a5e98 Mon Sep 17 00:00:00 2001 From: Meghan Clark Date: Thu, 18 Apr 2024 18:04:02 -0700 Subject: [PATCH] Added the service name to the ServiceTreeItem identifier so that different services running on the same process with the same methods don't get accidentally de-duped. --- app/mon/mon_gui/src/widgets/models/service_tree_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mon/mon_gui/src/widgets/models/service_tree_item.cpp b/app/mon/mon_gui/src/widgets/models/service_tree_item.cpp index 2acedcc126..a8d779301f 100644 --- a/app/mon/mon_gui/src/widgets/models/service_tree_item.cpp +++ b/app/mon/mon_gui/src/widgets/models/service_tree_item.cpp @@ -213,7 +213,7 @@ int ServiceTreeItem::type() const std::string ServiceTreeItem::generateIdentifier(const eCAL::pb::Service& service, const eCAL::pb::Method& method) { - return std::to_string(service.pid()) + "@" + service.hname() + "@" + method.mname(); + return std::to_string(service.pid()) + "@" + service.hname() + "@" + service.sname() + "@" + method.mname(); } std::string ServiceTreeItem::identifier() const