diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-02 20:33:00 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-03 10:59:43 -0300 |
commit | 823eec81c245f56cd2baf7c9fe0b1bf006500561 (patch) | |
tree | 9f9577ee6252f6d9cce086cffb20f2ff86ef3d12 /PySide | |
parent | f024b0d8840b00da4f3a703db5b22c70cf8b26ee (diff) |
Fix bug#320 - "OR'ing Qt alignments doesn't work; adding them does"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/qvariant_conversions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/qvariant_conversions.h b/PySide/QtCore/qvariant_conversions.h index a471ce64a..1e1c70578 100644 --- a/PySide/QtCore/qvariant_conversions.h +++ b/PySide/QtCore/qvariant_conversions.h @@ -34,7 +34,7 @@ struct Converter<QVariant> } else if (PyFloat_CheckExact(pyObj)) { // QVariant(double) return QVariant(Converter<double>::toCpp(pyObj)); - } else if (PyInt_CheckExact(pyObj)) { + } else if (PyInt_Check(pyObj)) { // QVariant(int) return QVariant(Converter<int>::toCpp(pyObj)); } else if (PyLong_CheckExact(pyObj)) { |