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 /filestreemodel.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 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 38ef000..db16d95 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -68,7 +68,8 @@ FilesTreeModel::~FilesTreeModel(){ delete mInsertFileQuery; delete mFilesQuery; delete mDeleteFileQuery; - //mDb = QSqlDatabase(); + delete mFileTypeQuery; + mDb = QSqlDatabase(); } const QString FilesTreeModel::modeName(int mode) const{ |