diff options
author | Arno <am@disconnect.de> | 2010-11-27 14:02:42 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-11-27 14:02:42 +0100 |
commit | a67257ebc9354933fafe1bd252568819ead79552 (patch) | |
tree | dede68fa77875c8e06fb55a7ba3563e121d93b5f /seriestreemodel.cpp | |
parent | d4d7d583bccd653499fc7fb988955209d443edae (diff) | |
download | SheMov-a67257ebc9354933fafe1bd252568819ead79552.tar.gz SheMov-a67257ebc9354933fafe1bd252568819ead79552.tar.bz2 SheMov-a67257ebc9354933fafe1bd252568819ead79552.zip |
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.
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r-- | seriestreemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/seriestreemodel.cpp b/seriestreemodel.cpp index a2bde55..ccc6abe 100644 --- a/seriestreemodel.cpp +++ b/seriestreemodel.cpp @@ -49,13 +49,14 @@ SeriesTreeModel::~SeriesTreeModel(){ delete mUpdateSeriesIdQuery; delete mUpdateSeriesNameQuery; delete mDeleteSeriesQuery; + delete mDeleteSeriesPartQuery; delete mSeriesInsertQuery; delete mSeriesFilesQuery; delete mSeriesPartFilesQuery; delete mSeriesPartInsertQuery; delete mSortedMovieListQuery; delete mNextDvdNoQuery; - mDb.close(); + delete mGenreFilterQuery; mDb = QSqlDatabase(); } |