Core: WorkbenchComboBox and WorkbenchGroup simplification.
This commit is contained in:
@@ -976,7 +976,7 @@ PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args)
|
||||
}
|
||||
|
||||
PyDict_SetItemString(Instance->_pcWorkbenchDictionary,item.c_str(),object.ptr());
|
||||
Instance->signalAddWorkbench(item.c_str());
|
||||
Instance->signalRefreshWorkbenches();
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
return nullptr;
|
||||
@@ -997,9 +997,9 @@ PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Instance->signalRemoveWorkbench(psKey);
|
||||
WorkbenchManager::instance()->removeWorkbench(psKey);
|
||||
PyDict_DelItemString(Instance->_pcWorkbenchDictionary,psKey);
|
||||
Instance->signalRefreshWorkbenches();
|
||||
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user