Commit 121bb850 authored by Jonathan Esk-Riddell's avatar Jonathan Esk-Riddell 🏄
Browse files

use qpointer

parent f97701e5
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment