def delete_current_filter(self):
        item = self.filterTreeWidget.currentItem()
        if not item:
            return
        if not item.parent():
            return
            
        if QMessageBox.question(self, 'Please confirm',
                                'Do you really want to delete "%s"?' % item.text(0),
                                QMessageBox.Yes | QMessageBox.No) == QMessageBox.No:
            return

        parent = item.parent()
        if parent.parent():
            top = parent.parent().text(0)
            group = parent.text(0)
        else:
            top = parent.text(0)
            group = None

        try:
            self.filter_managers[top].remove_item(item.text(0), group)
        except StandardError as e:
            QMessageBox.critical(self, 'Error removing filter', str(e))
        else:
            self.populate_filter_tree()
            self.filters_changed.emit(top)
Removes the current filter. Checks with the user if he really
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/ui/filter_dock.py/FilterDock.delete_current_filter