|
|
|
@ -165,11 +165,14 @@ void ActivityRunner::addMatch(const KActivities::Info &activity, QList<Plasma::Q |
|
|
|
void ActivityRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) |
|
|
|
void ActivityRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_UNUSED(context) |
|
|
|
Q_UNUSED(context) |
|
|
|
|
|
|
|
if (!m_enabled) { |
|
|
|
if (!m_enabled || !m_activities) { |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!m_activities) { |
|
|
|
|
|
|
|
m_activities = new KActivities::Controller(this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
m_activities->setCurrentActivity(match.data().toString()); |
|
|
|
m_activities->setCurrentActivity(match.data().toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|