code: def closeEvent(self, event):
          
          lf = self.browser.get_current_selection()
          if lf:
              self.last_file.emit(lf)
          return super(GenesisWin, self).close()
docs: Send last file signal on close event
  
          :param event: The close event
          :type event:
          :returns: None
          :rtype: None
          :raises: None