diff options
author | Arno <am@disconnect.de> | 2013-06-28 13:47:08 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-06-28 13:47:08 +0200 |
commit | 04d9dcbe2139109e00d07488f6e45d0353a676e2 (patch) | |
tree | 3f56c92a31fce83991de3eb4073d7f751fa35b21 /archivemodel.h | |
parent | 4fd07f5957b20dc229c4aa76e9132d4d8e2567ef (diff) | |
download | SheMov-04d9dcbe2139109e00d07488f6e45d0353a676e2.tar.gz SheMov-04d9dcbe2139109e00d07488f6e45d0353a676e2.tar.bz2 SheMov-04d9dcbe2139109e00d07488f6e45d0353a676e2.zip |
Implement destructor for ArchiveModel, get rid of 2 signals
We need a destructor for ArchiveModel, because we have to stop the
collectors first. Otherwise there will be random crashes all over the
place on exit when the Threads are destroyed while they're still
running.
Also, get rid of the signals collectorDone and collectorAboutToBeDone.
The latter was unused, and the former can be replaced with
QAbstractItemModel::modelReset.
Diffstat (limited to 'archivemodel.h')
-rw-r--r-- | archivemodel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archivemodel.h b/archivemodel.h index 3848d94..4ef39fa 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -26,6 +26,7 @@ class ArchiveModel : public SmTreeModel { enum { NumFields = 8 }; enum NodeType { SeriesNode, SeriesPartNode, GenreNode, ActorNode }; explicit ArchiveModel(const QStringList &headers, QObject *parent = 0); + virtual ~ArchiveModel(); const QStringList availableOrders() const; const QHash<QString, int> availableOrdersHash() const { return mAvailableOrders; } virtual QVariant data(const QModelIndex &index, int role) const; @@ -39,8 +40,6 @@ class ArchiveModel : public SmTreeModel { void needRefresh(); void databaseError(const QString &error); void message(const QString &msg); - void collectorAboutToBeDone(); - void collectorDone(); public slots: void setOrder(int order); |