Skip to content

Commit

Permalink
Merge pull request #39 from cibr-jyu/fix-empty-lines-channel-groups-d…
Browse files Browse the repository at this point in the history
…ialog

Do not allow adding empty lines in channel group dialog
  • Loading branch information
teekuningas authored Mar 14, 2024
2 parents 58a5a72 + a5a4201 commit 084eb4a
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 084eb4a

Please sign in to comment.