def savePrompt(self): """Prompt the user to save before creating a new file.""" if confirmDialog(self, "Save current config?") == gtk.RESPONSE_YES: self.save(None)