code: def setCurrentProfile(self, profile):
          
          try:
              index = self._profiles.index(profile)
          except ValueError:
              index = -1
          
          self._profileCombo.setCurrentIndex(index)
docs: Sets the current profile to the inputed profile.
          
          :param      profile | <XViewProfile>