From a570ca3522fa0d07793f5ada0076ec71389c941f Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Wed, 7 May 2025 14:06:48 +0200 Subject: [PATCH] Sample data: Fix plot without data. --- View/sample_data_tab.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/View/sample_data_tab.py b/View/sample_data_tab.py index 7de3ee1..20a5466 100644 --- a/View/sample_data_tab.py +++ b/View/sample_data_tab.py @@ -776,6 +776,9 @@ class SampleDataTab(QWidget): self.combobox_acoustic_data.showPopup() def fill_comboboxes_and_plot_transect(self): + if len(stg.acoustic_data) == 0: + return + self.combobox_acoustic_data.clear() for n, m in enumerate(stg.noise_method): if stg.noise_method[n] == 0: