summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-10-03 15:24:40 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-10-03 15:24:40 (GMT)
commit64bb234dae1a44a7824f5171e2f6e60559198de0 (patch)
tree5626e1ecb37463a31692fb6da8509a465937c759
parentb740cfbfd607f8da4ba12fe70a558cfbacad41c0 (diff)
show only install action in menu
-rw-r--r--app/kipiinterface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index d132f3a..ce5d5fb 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -216,7 +216,7 @@ struct KIPIInterfacePrivate
{
mPluginMenu = static_cast<QMenu*>(
mMainWindow->factory()->container("plugins", mMainWindow));
- QObject::connect(mPluginMenu, &QMenu::aboutToShow, q, &KIPIInterface::loadPlugins);
+ connect(mPluginMenu, &QMenu::aboutToShow, q, &KIPIInterface::loadPlugins);
}
QAction * createDummyPluginAction(const QString& text)
@@ -342,7 +342,6 @@ void KIPIInterface::loadOnePlugin()
d->mPluginMenu->removeAction(d->mLoadingAction);
if (d->mPluginMenu->isEmpty()) {
- d->mPluginMenu->addAction(d->mNoPluginAction);
if (KIO::DesktopExecParser::hasSchemeHandler(QUrl(KIPI_PLUGINS_URL))) {
d->mPluginMenu->addAction(d->mInstallPluginAction);
d->mInstallPluginAction->setEnabled(true);
@@ -351,6 +350,8 @@ void KIPIInterface::loadOnePlugin()
d->mPluginWatcher = new QFileSystemWatcher(d->mMainWindow);
d->mPluginWatcher->addPaths(QCoreApplication::libraryPaths());
connect(d->mPluginWatcher, &QFileSystemWatcher::directoryChanged, this, &KIPIInterface::packageFinished);
+ } else {
+ d->mPluginMenu->addAction(d->mNoPluginAction);
}
}