Commit cc2f28ec authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[TasksModel] Use LauncherUrlWithoutIcon in move method

It is passed to launcherPosition which then ignores query items anyway.

Differential Revision: https://phabricator.kde.org/D6872
parent 5bac69e5
......@@ -1353,7 +1353,7 @@ bool TasksModel::move(int row, int newPos)
// When using launch-in-place sorting, launcher-backed window tasks act as launchers.
} else if ((d->launchInPlace || !d->separateLaunchers)
&& idx.data(AbstractTasksModel::IsWindow).toBool()) {
const QUrl &launcherUrl = idx.data(AbstractTasksModel::LauncherUrl).toUrl();
const QUrl &launcherUrl = idx.data(AbstractTasksModel::LauncherUrlWithoutIcon).toUrl();
const int launcherPos = launcherPosition(launcherUrl);
if (launcherPos != -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment