code: def closeEvent( self, event ):
          
          if ( XConfigDialog._instance == self ):
              XConfigDialog._instance = None
          
          super(XConfigDialog, self).closeEvent(event)
docs: Manages the close event for the current dialog.
          
          :param      event | <QCloseEvent>