latest Qt branch

Thiago Macieira thiago at macieira.org
Thu May 16 14:09:45 PDT 2013


On quinta-feira, 16 de maio de 2013 12.37.43, Dirk Hohndel wrote:
> Running Subsurface
> 
> QCoreApplication::postEvent: Unexpected null receiver

Trick: run in gdb with QT_FATAL_WARNINGS=1

Offending line:

#6  0x0000000000431b20 in DiveListView::reload (this=0x7a8d10) at qt-
ui/divelistview.cpp:29

void DiveListView::reload()
{
        QSortFilterProxyModel *m = 
qobject_cast<QSortFilterProxyModel*>(model());
        QAbstractItemModel *oldModel = m->sourceModel();
        oldModel->deleteLater();

(29 is the last line)

It's missing an if. Patch attached.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-deleteLater-a-null-pointer.patch
Type: text/x-patch
Size: 944 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130516/37ba308d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130516/37ba308d/attachment.sig>


More information about the subsurface mailing list