'Return selected modified paths.'

def selected_modified_paths(self, selection=None):

    if (selection is None):
        selection = self.selected_paths()
    model = main.model()
    modified = utils.add_parents(model.modified)
    return [p for p in selection if (p in modified)]
