<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_current(self):
 """ Save current editor. If the editor.file.path is None, a save as dialog will be shown. """

        if self.current_widget() is not None:
            editor = self.current_widget()
            self._save(editor)