summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-09-30 17:04:21 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-09-30 17:04:21 (GMT)
commit4667c41fb734aa29a32080ef4bd6aa98491ab12c (patch)
treee389abadeed641cd25ec4af36b69a132814a1bed
parent5e840eb1a4f7f031cbad7f624769878853c52e35 (diff)
define url in one place
-rw-r--r--app/kipiinterface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index da3d4d5..c5e1054 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -57,6 +57,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <lib/timeutils.h>
#include <lib/semanticinfo/sorteddirmodel.h>
+#define KIPI_PLUGINS_URL "appstream://photolayoutseditor.desktop"
+
namespace Gwenview
{
#undef ENABLE_LOG
@@ -336,11 +338,10 @@ void KIPIInterface::loadOnePlugin()
}
}
-
d->mPluginMenu->removeAction(d->mLoadingAction);
if (d->mPluginMenu->isEmpty()) {
d->mPluginMenu->addAction(d->mNoPluginAction);
- if (KIO::DesktopExecParser::hasSchemeHandler(QUrl("appstream://photolayoutseditor.desktop"))) {
+ if (KIO::DesktopExecParser::hasSchemeHandler(QUrl(KIPI_PLUGINS_URL))) {
d->mPluginMenu->addAction(d->mInstallPluginAction);
d->mInstallPluginAction->setEnabled(true);
QObject::connect(d->mInstallPluginAction, &QAction::triggered,
@@ -356,7 +357,7 @@ void KIPIInterface::loadOnePlugin()
void KIPIInterface::slotInstallPlugins(bool checked) {
Q_UNUSED(checked);
- QDesktopServices::openUrl(QUrl("appstream://photolayoutseditor.desktop"));
+ QDesktopServices::openUrl(QUrl(KIPI_PLUGINS_URL));
}
void KIPIInterface::packageFinished() {