Skip to content

Commit fb16d6e

Browse files
iakovusiems
authored andcommitted
Add missing break in switch to fix P3K conversion
for QVariant::ByteArray
1 parent 8137f1f commit fb16d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PythonQtConversion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ QVariant PythonQtConv::PyObjToQVariant(PyObject* val, int type)
11311131
#else
11321132
v = QVariant(PyObjGetString(val, false, ok));
11331133
#endif
1134+
break;
11341135
}
11351136
case QVariant::String:
11361137
{
@@ -1595,4 +1596,4 @@ PyObject* PythonQtConv::convertFromPythonQtSafeObjectPtr(const void* /* PythonQt
15951596
// extra ref count, since we are supposed to return a newly refcounted object
15961597
Py_XINCREF(obj);
15971598
return obj;
1598-
}
1599+
}

0 commit comments

Comments
 (0)