ErrorRecorder.cpp 724 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "EditorDefs.h"
  9. #include "ErrorRecorder.h"
  10. #include "Include/IErrorReport.h"
  11. //////////////////////////////////////////////////////////////////////////
  12. CErrorsRecorder::CErrorsRecorder(bool showErrors)
  13. {
  14. GetIEditor()->GetErrorReport()->SetImmediateMode(false);
  15. GetIEditor()->GetErrorReport()->SetShowErrors(showErrors);
  16. }
  17. //////////////////////////////////////////////////////////////////////////
  18. CErrorsRecorder::~CErrorsRecorder()
  19. {
  20. GetIEditor()->GetErrorReport()->Display();
  21. }