From 3c508cad0032f46be56279f3a3ab5a7df9128bef Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 30 Dec 2010 14:47:12 +0100 Subject: Fix qWarnings() at startup and shutdown Fix unexpected NULL receiver on startup: Turns out this warning is issued when calling deleteLater on a NULL object. This happened in SheMov::createOpenWith*. The "database is still in use" warning was a bit harder to track down. First of all, the destructors weren't called since Qt::WA_DeleteOnClose wasn't set for SheMov, so Qt would simply exit and let the OS do the cleanup without calling the destructors. Then there were several orphan widgets/objects without a parent, so their destructor would never be called. --- seriestreewidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'seriestreewidget.h') diff --git a/seriestreewidget.h b/seriestreewidget.h index 02a6693..f177943 100644 --- a/seriestreewidget.h +++ b/seriestreewidget.h @@ -39,6 +39,7 @@ class SeriesTreeWidget : public QWidget { public: enum FilterMode { FilterSeries = 1, FilterActor = 2, FilterGenre = 3, FilterSize = 4, FilterQuality = 5, FilterFileName = 6, FilterDvdNo = 7 }; explicit SeriesTreeWidget(QWidget *parent = 0); + virtual ~SeriesTreeWidget(); SeriesTreeView *seriesTree() { return mView; } SeriesTreeSortModel *seriesProxy() { return mProxy; } int filterMode() const { return mFilterMode; } -- cgit v1.2.3-70-g09d2