App: replace boolean with enum

This commit is contained in:
wmayer
2022-11-17 17:38:31 +01:00
parent 07711bb8a8
commit e10b23ca70
5 changed files with 27 additions and 12 deletions

View File

@@ -832,7 +832,7 @@ PyObject *Application::sCheckLinkDepth(PyObject * /*self*/, PyObject *args)
return nullptr;
PY_TRY {
return Py::new_reference_to(Py::Int(GetApplication().checkLinkDepth(depth,false)));
return Py::new_reference_to(Py::Int(GetApplication().checkLinkDepth(depth, MessageOption::Throw)));
}PY_CATCH;
}