summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-12-30 14:47:12 +0100
committerArno <am@disconnect.de>2010-12-30 14:47:12 +0100
commit3c508cad0032f46be56279f3a3ab5a7df9128bef (patch)
tree5752a0abf3f347dae52288522f39abbf9ea79058 /filesystemwidget.cpp
parent9fa92d359003485e21aa1a1d81545f63cf4d08da (diff)
downloadSheMov-3c508cad0032f46be56279f3a3ab5a7df9128bef.tar.gz
SheMov-3c508cad0032f46be56279f3a3ab5a7df9128bef.tar.bz2
SheMov-3c508cad0032f46be56279f3a3ab5a7df9128bef.zip
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.
Diffstat (limited to 'filesystemwidget.cpp')
-rw-r--r--filesystemwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp
index f4a9d24..38edbab 100644
--- a/filesystemwidget.cpp
+++ b/filesystemwidget.cpp
@@ -39,7 +39,7 @@
#include "smglobals.h"
FilesystemWidget::FilesystemWidget(QWidget *parent) : QWidget(parent), mClipboardMode(None) {
- mModel = new FileSystemModel;
+ mModel = new FileSystemModel(this);
mModel->setRootPath("/");
mModel->setFilter(QDir::AllEntries | QDir::NoDot);
mModel->setReadOnly(false);