code: def tabModificationStateChanged(self, tab):
  		'''
  		Perform all UI state changes that need to be done when the
  		modification state of the current tab has changed.
  		'''
  		if tab == self.currentTab:
  			changed = tab.editBox.document().isModified()
  			if self.autoSaveActive(tab):
  				changed = False
  			self.actionSave.setEnabled(changed)
  			self.setWindowModified(changedf tabModificationStateChanged(self, tab):
  		'''
  		Perform all UI state changes that need to be done when the
  		modification state of the current tab has changed.
  		'''
  		if tab == self.currentTab:
  			changed = tab.editBox.document().isModified()
  			if self.autoSaveActive(tab):
  				changed = False
  			self.actionSave.setEnabled(changed)
  			self.setWindowModified(changed)
docs: Perform all UI state changes that need to be done when the
  		modification state of the current tab has changed.