Core: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 14:04:05 +02:00
parent d1ef818f39
commit 201f4c9a5a
21 changed files with 68 additions and 69 deletions

View File

@@ -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;