def importProfile(self, filename=None):
        """
        Imports the profiles from the given filename.
        
        :param      filename | <str> || None
        """
        if not filename:
            filename = QFileDialog.getOpenFileName( self,
                                                    'Import Perspective',
                                                    '',
                                                    'XML Files (*.xml)')
            
            if type(filename) == tuple:
                filename = nativestring(filename[0])
            
        if not (filename and os.path.exists(filename)):
            return False
        
        prof = XViewProfile.load(filename)
        if prof:
            self.addProfile(prof)
Imports the profiles from the given filename.
        
        :param      filename | <str> || None