code: def closeEvent(self, event):
          
          if self.inimodel.get_edited():
              r = self.doc_modified_prompt()
              if r == QtGui.QMessageBox.Yes:
                  event.accept()
              else:
                  event.ignore()
          else:
              event.accept()
docs: Handles closing of the window. If configs were edited, ask user to continue.
  
          :param event: the close event
          :type event: QCloseEvent
          :returns: None
          :rtype: None
          :raises: None