prepare for PyCXX 7.0
This commit is contained in:
@@ -92,7 +92,7 @@ Py::Object ControlPy::showDialog(const Py::Tuple& args)
|
||||
{
|
||||
Gui::TaskView::TaskDialog* act = Gui::Control().activeDialog();
|
||||
if (act)
|
||||
throw Py::Exception("Active task dialog found");
|
||||
throw Py::RuntimeError("Active task dialog found");
|
||||
TaskDialogPython* dlg = new TaskDialogPython(args[0]);
|
||||
Gui::Control().showDialog(dlg);
|
||||
return Py::None();
|
||||
|
||||
Reference in New Issue
Block a user