From 4d2cc1f62de2e097600212f57ef17d222931bbe5 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 5 Oct 2012 09:49:38 +0200 Subject: Fix deleting children in MappingTreeModel Deleting children tried to remove it from mappings instead of mappings_parents2. The mapping itself should not be deleted. --- mappingtreemodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 72a7b7f..1aebbef 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -9,6 +9,7 @@ #define MAPPINGTREEMODEL_H #include +#include #include "smtreemodel.h" @@ -52,6 +53,7 @@ class MappingTreeModel : public SmTreeModel { MappingData mappingDataFromIndex(QModelIndex &idx) const; QStringList paths() const; const QString &forbidden() const { return mForbidden; } + const QSqlError &lastError() const { return mLastError; } public slots: void populate(); @@ -94,6 +96,7 @@ class MappingTreeModel : public SmTreeModel { QMap mMappings; const QString mForbidden; int mType; + QSqlError mLastError; }; class MappingTreeResultModel : public SmTreeModel { -- cgit v1.2.3-70-g09d2