diff --git a/src/query.h b/src/query.h index de376dc..f2205d9 100644 --- a/src/query.h +++ b/src/query.h @@ -309,9 +309,9 @@ Q_OUTOFLINE_TEMPLATE RowList Query::toList(int count) qPrintable(data.table->name())); shp = QSharedPointer(table); } - - connect(table, &QObject::destroyed, [](QObject *){ - qDebug() << "Destroyed"; + const char *className = table->metaObject()->className(); + connect(table, &QObject::destroyed, [className](QObject *){ + qDebug() << "Destroyed " << className; }); QList childFields = data.table->fields();