Skip to content

Commit

Permalink
Disables OkButton when no file is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaz-Vieira committed Feb 25, 2021
1 parent 74029ea commit e0edb89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ilastik/widgets/stackFileSelectionWidget.py
Expand Up @@ -395,6 +395,8 @@ def _updateFileList(self, files):
for f in self.selectedFiles:
self.fileListWidget.addItem(f)

self.okButton.setEnabled(bool(files))

def eventFilter(self, watched, event):
if watched == self.patternEdit:
return self._filterPatternEditEvent(event)
Expand Down

0 comments on commit e0edb89

Please sign in to comment.