@@ -316,14 +316,15 static int PythonQtInstanceWrapper_setattro(PyObject *obj,PyObject *name,PyObjec | |||
|
316 | 316 | if ((attributeName = PyString_AsString(name)) == NULL) |
|
317 | 317 | return -1; |
|
318 | 318 | |
|
319 | PythonQtMemberInfo member = wrapper->classInfo()->member(attributeName); | |
|
320 | if (member._type == PythonQtMemberInfo::Property) { | |
|
321 | ||
|
319 | 322 | if (!wrapper->_obj) { |
|
320 |
error = QString("Trying to set |
|
|
323 | error = QString("Trying to set property '") + attributeName + "' on a destroyed " + wrapper->classInfo()->className() + " object"; | |
|
321 | 324 | PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); |
|
322 | 325 | return -1; |
|
323 | 326 | } |
|
324 | 327 | |
|
325 | PythonQtMemberInfo member = wrapper->classInfo()->member(attributeName); | |
|
326 | if (member._type == PythonQtMemberInfo::Property) { | |
|
327 | 328 |
|
|
328 | 329 | if (prop.isWritable()) { |
|
329 | 330 | QVariant v; |
General Comments 0
You need to be logged in to leave comments.
Login now