Core: replace PyObject_IsTrue with Base::asBoolean
This commit is contained in:
@@ -96,7 +96,7 @@ PyObject* CommandPy::listByShortcut(PyObject *args)
|
||||
Action* action = c->getAction();
|
||||
if (action) {
|
||||
QString spc = QString::fromLatin1(" ");
|
||||
if (PyObject_IsTrue(bIsRegularExp) ? true : false) {
|
||||
if (Base::asBoolean(bIsRegularExp)) {
|
||||
QRegExp re = QRegExp(QString::fromLatin1(shortcut_to_find));
|
||||
re.setCaseSensitivity(Qt::CaseInsensitive);
|
||||
if (!re.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user