diff options
author | Arno <am@disconnect.de> | 2013-07-27 07:18:32 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-27 07:18:32 +0200 |
commit | 1b1d3a18a8fffdd61f533fd4b0bde4f75d683212 (patch) | |
tree | 51b60f6afbe4a5e1bd8617a7c18f08a30e971526 /smdirmodel.h | |
parent | 8fba0fcb81e7b517804f34a5c8ad3741f92926da (diff) | |
download | SheMov-1b1d3a18a8fffdd61f533fd4b0bde4f75d683212.tar.gz SheMov-1b1d3a18a8fffdd61f533fd4b0bde4f75d683212.tar.bz2 SheMov-1b1d3a18a8fffdd61f533fd4b0bde4f75d683212.zip |
Cleanup closeEvent
Don't try to delete all the prepared statements manually. Get rid of the
~destructors and just close the QSqlDatabase. close() deletes all
Statements.
Also, quit() all QThreads on closeEvent() except CompleterProducer. When
the experimental archive view gets merged, that QThread is gone. No need
to bother...
Diffstat (limited to 'smdirmodel.h')
-rw-r--r-- | smdirmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/smdirmodel.h b/smdirmodel.h index 8522662..21aab40 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -27,6 +27,7 @@ class SmDirModel : public SmTreeModel { enum { NumFields = 9 }; enum FileDate { Access, Modified, Status }; explicit SmDirModel(const QStringList &headers, QObject *parent = 0); + virtual ~SmDirModel(); virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role); bool isDir(const QModelIndex &idx) const; |