(self)
Save database and close KeePassC
Save database and close KeePassC
Save database and close KeePassC
def save_n_quit(self):
        '''Save database and close KeePassC'''

        if self.db.filepath is None:
            filepath = FileBrowser(self.control, False, False, None, True)()
            if filepath == -1:
                self.close()
            elif filepath is not False:
                self.control.cur_dir = filepath
                if self.save(self.control.cur_dir) is not False:
                    self.close()
        elif self.save(self.control.cur_dir) is not False:
            self.close()
def save_n_quit ( self ) : if self . db . filepath is None : filepath = FileBrowser ( self . control , False , False , None , True ) ( ) if filepath == - 1 : self . close ( ) elif filepath is not False : self . control . cur_dir = filepath if self . save ( self . control . cur_dir ) is not False : self . close ( ) elif self . save ( self . control . cur_dir ) is not False : self . close ( )