Commit 790b497b authored by Jonathan Esk-Riddell's avatar Jonathan Esk-Riddell 🏄
Browse files

use a lambda for simple slot

parent b80354e6
......@@ -348,7 +348,7 @@ void KIPIInterface::loadOnePlugin()
d->mPluginMenu->addAction(d->mInstallPluginAction);
d->mInstallPluginAction->setEnabled(true);
QObject::connect(d->mInstallPluginAction, &QAction::triggered,
this, &KIPIInterface::slotInstallPlugins);
this, [=](){QDesktopServices::openUrl(QUrl(KIPI_PLUGINS_URL));});
d->mPluginWatcher = new QFileSystemWatcher(d->mMainWindow);
d->mPluginWatcher->addPaths(QCoreApplication::libraryPaths());
connect(d->mPluginWatcher, &QFileSystemWatcher::directoryChanged, this, &KIPIInterface::packageFinished);
......@@ -358,10 +358,6 @@ void KIPIInterface::loadOnePlugin()
loadingFinished();
}
void KIPIInterface::slotInstallPlugins() {
QDesktopServices::openUrl(QUrl(KIPI_PLUGINS_URL));
}
void KIPIInterface::packageFinished() {
if (d->mPluginLoader) {
delete d->mPluginLoader;
......
......@@ -89,7 +89,6 @@ public Q_SLOTS:
private Q_SLOTS:
void slotSelectionChanged();
void slotDirectoryChanged();
void slotInstallPlugins();
void packageFinished();
void init();
void loadOnePlugin();
......
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