Ticket #62105: patch-pointers.diff

File patch-pointers.diff, 652 bytes (added by NicosPavlov, 4 years ago)

Patch for the pointer error

  • kdeui/itemviews/kselectionproxymodel.cpp

    diff -ur kdelibs-4.14.3-orig/kdeui/itemviews/kselectionproxymodel.cpp kdelibs-4.14.3/kdeui/itemviews/kselectionproxymodel.cpp
    old new  
    21442144    if (!proxyIndex.isValid() || !sourceModel() || d->m_rootIndexList.isEmpty())
    21452145        return QModelIndex();
    21462146
    2147     Q_ASSERT(proxyIndex.internalPointer() >= 0);
     2147    Q_ASSERT(proxyIndex.internalPointer() != NULL);
    21482148    Q_ASSERT(proxyIndex.model() == this);
    21492149
    21502150    if (proxyIndex.internalPointer() == 0)