'Accepts drops if the mimedata contains patches'

def dragEnterEvent(self, event):

    super(ApplyPatches, self).dragEnterEvent(event)
    patches = get_patches_from_mimedata(event.mimeData())
    if patches:
        event.acceptProposedAction()
