summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libpyside/pysidesignal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpyside/pysidesignal.cpp b/libpyside/pysidesignal.cpp
index e3a2103..53c5814 100644
--- a/libpyside/pysidesignal.cpp
+++ b/libpyside/pysidesignal.cpp
@@ -585,10 +585,10 @@ char* getTypeName(PyObject* type)
typeName = strdup("PyObject");
}
return typeName;
+ } else if (type == Py_None) { // Must be checked before as Shiboken::String::check accepts Py_None
+ return strdup("void");
} else if (Shiboken::String::check(type)) {
return strdup(Shiboken::String::toCString(type));
- } else if (type == Py_None) {
- return strdup("void");
}
return 0;
}