From 97c6d13b7117fe4d0d3fd80be559bc4d275c48c8 Mon Sep 17 00:00:00 2001 From: destinyk <destiny.kuehn@student.nmt.edu> Date: Fri, 9 Feb 2024 16:32:06 -0700 Subject: [PATCH] fix bug where stations before selection not added to table --- nexus/nexus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nexus/nexus.py b/nexus/nexus.py index dea1058a..a05c896d 100755 --- a/nexus/nexus.py +++ b/nexus/nexus.py @@ -1302,6 +1302,7 @@ class StationWidget(WidgetBase, *load_ui("StationWidget.ui")): "DLgain": dialog.gainCB.isChecked(), "Stype": dialog.sensorCB.isChecked()} self.update_inventory(dialog.selected_stations, checked_boxes) + self.stat_node_to_obj_map = {} def update_inventory(self, stations, checked_boxes): for stat in stations: @@ -1322,7 +1323,8 @@ class StationWidget(WidgetBase, *load_ui("StationWidget.ui")): Get all stations from inventory to add to Station Select Dialogue """ - net = self._data_mapper.rootIndex() + # get top most network + net = self._model.index(0, 0, QtCore.QModelIndex()) self.stat_node_to_obj_map = {} stations = [] net_row = 0 -- GitLab