Changeset View
Changeset View
Standalone View
Standalone View
applets/pager/plugin/pagermodel.cpp
Context not available. | |||||
595 | KWindowSystem::setOnDesktop(id, itemId.toInt()); | 595 | KWindowSystem::setOnDesktop(id, itemId.toInt()); | ||
---|---|---|---|---|---|
596 | } | 596 | } | ||
597 | } else { | 597 | } else { | ||
598 | QString newActivity; | 598 | QString newActivity = itemId.toString(); | ||
599 | const QStringList &runningActivities = d->activityInfo->runningActivities(); | 599 | const QStringList &runningActivities = d->activityInfo->runningActivities(); | ||
600 | 600 | | |||
601 | if (itemId < runningActivities.length()) { | 601 | if (!runningActivities.contains(newActivity)) { | ||
602 | newActivity = itemId.toString(); | | |||
603 | } | | |||
604 | | ||||
605 | if (newActivity.isEmpty()) { | | |||
606 | return; | 602 | return; | ||
607 | } | 603 | } | ||
608 | 604 | | |||
Context not available. |