summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-09-30 15:48:53 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-09-30 15:48:53 (GMT)
commit121bb850a546be34ab2052bb0c7a49214900fd0a (patch)
tree34f5730e5b2f0972dd80fdfe18e86a8652b0128e
parentf97701e56baccbbc95e47a24d757a822d31617d6 (diff)
use qpointer
-rw-r--r--app/kipiinterface.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index 160c470..b723895 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -206,8 +206,7 @@ struct KIPIInterfacePrivate
QAction * mLoadingAction;
QAction * mNoPluginAction;
QAction * mInstallPluginAction;
- QProgressDialog * installDialog;
- QFileSystemWatcher * mPluginWatcher;
+ QPointer<QFileSystemWatcher> mPluginWatcher;
void setupPluginsMenu()
{
@@ -338,7 +337,6 @@ void KIPIInterface::loadOnePlugin()
if (d->mPluginWatcher) {
delete d->mPluginWatcher;
- d->mPluginWatcher = 0;
}
d->mPluginMenu->removeAction(d->mLoadingAction);
if (d->mPluginMenu->isEmpty()) {