• muxator's avatar
    py3: fix drag & drop in the Repository Registry · bff76ec4059e
    muxator authored
    Before this change, dragging & dropping repositories across groups in the
    registry was not working on py3: at drop, the message b'Start tag expected.'
    was printed in the console, but nothing happened.
    The reason is that QMimeData::data() returns a QByteArray containing an XML
    document that was passed through str() and directly fed to
    repotreemodel.readXml(), which instead expects either a unicode string or
    This change converts the QByteArray to bytes(), and restores the drag & drop
    functionality in the Repo Registry.
    branch : stable
repotreemodel.py 14.7 KB