Gui: move reloadActive() to WorkbenchPy base class

This commit is contained in:
wmayer
2022-02-18 07:51:47 +01:00
parent 7c11debe1a
commit 8929ebf375
4 changed files with 20 additions and 21 deletions

View File

@@ -24,7 +24,6 @@
#include "PreCompiled.h"
#include "Workbench.h"
#include "WorkbenchManager.h"
// inclusion of the generated files (generated out of PythonWorkbenchPy.xml)
#include "PythonWorkbenchPy.h"
@@ -275,20 +274,6 @@ PyObject* PythonWorkbenchPy::removeCommandbar(PyObject *args)
} PY_CATCH;
}
/** Reload the workbench */
PyObject* PythonWorkbenchPy::reloadActive(PyObject *args)
{
PY_TRY {
if (!PyArg_ParseTuple(args, ""))
return nullptr;
Workbench* active = Gui::WorkbenchManager::instance()->active();
if (active)
active->activate();
Py_Return;
} PY_CATCH;
}
PyObject* PythonWorkbenchPy::getCustomAttributes(const char* ) const
{
return nullptr;