'Return selected filenames'

def get_selected_filenames(self):

    if (self.selectionMode() == self.ExtendedSelection):
        return [self.get_filename(idx) for idx in self.selectedIndexes()]
    else:
        return [self.get_filename(self.currentIndex())]
