From 04d9dcbe2139109e00d07488f6e45d0353a676e2 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 28 Jun 2013 13:47:08 +0200 Subject: 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. --- archivemodel.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'archivemodel.h') 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 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); -- cgit v1.2.3-70-g09d2