diff --git a/abstractrunner.cpp b/abstractrunner.cpp index c2209c328..34ecca5a5 100644 --- a/abstractrunner.cpp +++ b/abstractrunner.cpp @@ -292,10 +292,6 @@ QString AbstractRunner::name() const return d->runnerDescription.name(); } - if (d->package) { - return d->package->metadata().name(); - } - return objectName(); } @@ -305,10 +301,6 @@ QIcon AbstractRunner::icon() const return KIcon(d->runnerDescription.icon()); } - if (d->package) { - return KIcon(d->package->metadata().icon()); - } - return QIcon(); } @@ -318,10 +310,6 @@ QString AbstractRunner::id() const return d->runnerDescription.pluginName(); } - if (d->package) { - return d->package->metadata().pluginName(); - } - return objectName(); } @@ -331,10 +319,6 @@ QString AbstractRunner::description() const return d->runnerDescription.property("Comment").toString(); } - if (d->package) { - return d->package->metadata().description(); - } - return objectName(); } @@ -464,7 +448,7 @@ void AbstractRunnerPrivate::setupScriptSupport() QString translationsPath = package->filePath("translations"); if (!translationsPath.isEmpty()) { KGlobal::dirs()->addResourceDir("locale", translationsPath); - KGlobal::locale()->insertCatalog(package->metadata().pluginName()); + KGlobal::locale()->insertCatalog(runnerDescription.pluginName()); } }