Sample data: Fix plot without data.

This commit is contained in:
parouby committed 2025-05-07 14:06:48 +02:00
1 parent 0dd38af7a9
commit a570ca3522
1 file changed
+3
+3
View File
@@ -776,6 +776,9 @@ class SampleDataTab(QWidget):
self.combobox_acoustic_data.showPopup() self.combobox_acoustic_data.showPopup()
def fill_comboboxes_and_plot_transect(self): def fill_comboboxes_and_plot_transect(self):
if len(stg.acoustic_data) == 0:
return
self.combobox_acoustic_data.clear() self.combobox_acoustic_data.clear()
for n, m in enumerate(stg.noise_method): for n, m in enumerate(stg.noise_method):
if stg.noise_method[n] == 0: if stg.noise_method[n] == 0: