• Mathias Wein's avatar
    Prevent infinite recursion with Qt >5.15.2 · d062760c
    Mathias Wein authored
    The fix for QTBUG-87781 is to recreate an internal mapping in
    QSortFilterProxyModel::setSourceModel(), and KisResourceModel calls
    this in the constructor.
    This leads to KisResourceModel::filterAcceptsRow() being called, which
    ultimately fetches data via KisResourceQueryMapper::variantFromResourceQuery().
    So the latter must not create a temporary KisResourceModel when processing the
    data role used by filterAcceptsRow().
    
    So only create the temporary model when actually required.
    d062760c
KisResourceQueryMapper.cpp 6.44 KB