Skip to content

Commit

Permalink
Do not allow adding empty lines in channel group dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
teekuningas committed Mar 14, 2024
1 parent 58a5a72 commit a5a4201
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meggie/mainwindow/dialogs/channelGroupsDialogMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5a4201

Please sign in to comment.