Core: replace PyObject_IsTrue with Base::asBoolean
This commit is contained in:
@@ -101,7 +101,7 @@ FreeCADGui_showMainWindow(PyObject * /*self*/, PyObject *args)
|
||||
|
||||
static bool thr = false;
|
||||
if (!qApp) {
|
||||
if ((PyObject_IsTrue(inThread) ? true : false) && !thr) {
|
||||
if (Base::asBoolean(inThread) && !thr) {
|
||||
thr = true;
|
||||
std::thread t([]() {
|
||||
static int argc = 0;
|
||||
|
||||
Reference in New Issue
Block a user