From a67257ebc9354933fafe1bd252568819ead79552 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Nov 2010 14:02:42 +0100 Subject: Streamline database access An unsuccessfull attempt to get rid of the warning "connection treedb is still in use..." by trying to delete all queries and setting mDb to QSqlDatabase() in the destructor. Strangely enough, the warning is only issued from inside QtCreator... Maybe it's some kind of race. --- archivetreeview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archivetreeview.h') diff --git a/archivetreeview.h b/archivetreeview.h index 2789298..a9d2266 100644 --- a/archivetreeview.h +++ b/archivetreeview.h @@ -80,7 +80,7 @@ class NoCoverMovieModel : public SmTreeModel { enum CustomRoles { SeriesNameRole = Qt::UserRole + 1, SeriesPartRole = Qt::UserRole + 2, SeriesIdRole = Qt::UserRole + 3 }; enum Fields { Display = 0, SeriesName = 1, SeriesPart = 2, SeriesId = 3 }; explicit NoCoverMovieModel(const QStringList &headers, QObject *parent = 0); - virtual ~NoCoverMovieModel() {} + virtual ~NoCoverMovieModel(); virtual QVariant data(const QModelIndex &index, int role) const; Qt::ItemFlags flags(const QModelIndex &index) const; -- cgit v1.2.3-70-g09d2