From a5a42013e0e59fa1ab1582a3dab1f9b8ad631341 Mon Sep 17 00:00:00 2001 From: teekuningas Date: Thu, 14 Mar 2024 10:19:33 +0200 Subject: [PATCH] Do not allow adding empty lines in channel group dialog --- meggie/mainwindow/dialogs/channelGroupsDialogMain.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meggie/mainwindow/dialogs/channelGroupsDialogMain.py b/meggie/mainwindow/dialogs/channelGroupsDialogMain.py index 59119512..e8ea79ae 100644 --- a/meggie/mainwindow/dialogs/channelGroupsDialogMain.py +++ b/meggie/mainwindow/dialogs/channelGroupsDialogMain.py @@ -44,6 +44,9 @@ def on_pushButtonAdd_clicked(self, checked=None): name = self.ui.lineEditAdd.text() + if not name: + return + if self.ui.radioButtonEEG.isChecked(): if name in self.eeg_channel_groups.keys(): return