'Save all opened files'

def save_all(self):

    folders = set()
    for index in range(self.get_stack_count()):
        if self.data[index].editor.document().isModified():
            folders.add(osp.dirname(self.data[index].filename))
            self.save(index)
