diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-09 15:47:27 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-09 15:47:27 +0100 |
commit | 1d1799da8880b19aac0dbd2975facf97138bab61 (patch) | |
tree | 4b05c2e4d61782d5da1499435df32c9142dc38af /confui/ui_tab_node_overview.cpp | |
parent | 7db6cde62ee6df76df798f108b747398de8ab26b (diff) |
refactor mesh connector and fix duplicate list entries on refresh
Diffstat (limited to 'confui/ui_tab_node_overview.cpp')
-rw-r--r-- | confui/ui_tab_node_overview.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/confui/ui_tab_node_overview.cpp b/confui/ui_tab_node_overview.cpp index d0280cf..84f1d6e 100644 --- a/confui/ui_tab_node_overview.cpp +++ b/confui/ui_tab_node_overview.cpp @@ -4,7 +4,6 @@ #include <QScrollArea> #include "ui_tab_node_overview.h" -#include "ui_node.h" using std::pair; @@ -18,10 +17,9 @@ CDNodeOverviewTabWidget::CDNodeOverviewTabWidget(CDMainWindow* main_window) : QW } void CDNodeOverviewTabWidget::update() { - map<cd_mac_addr_cpp_t, cd_s_node*> nodes = g_cd_mesh_connector->get_nodes(false); - map<cd_mac_addr_cpp_t, CDNodeWidget*> node_widgets; + map<cd_uid_t, cd_s_node*> nodes = g_cd_mesh_connector->get_nodes(false); - for (pair<cd_mac_addr_cpp_t, cd_s_node*> node : nodes) { + for (pair<cd_uid_t, cd_s_node*> node : nodes) { if (node_widgets.count(node.first)) { // node is already in list node_widgets[node.first]->update(); } else { |