Commit af28e245 authored by Tranter Madi's avatar Tranter Madi Committed by Nate Graham

[KickerDash] Add missed argument in addFavorite

Test Plan:
Before:
- Drag&Drop an item from the middle column into the Favorite column at the position 2 (index =1) -> it is always added at the last position

After:
- Drag&Drop an item from the middle column into the Favorite column at the position 2 (index =1) -> it is added at the wanted position 2

Reviewers: ngraham, hein, #plasma

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19893
parent feaa2093
......@@ -566,7 +566,7 @@ void KAStatsFavoritesModel::portOldFavorites(const QStringList &ids)
void KAStatsFavoritesModel::addFavorite(const QString &id, int index)
{
qCDebug(KICKER_DEBUG) << "addFavorite" << id << index << " -->";
addFavoriteTo(id, QStringLiteral(":global"));
addFavoriteTo(id, QStringLiteral(":global"), index);
}
void KAStatsFavoritesModel::removeFavorite(const QString &id)
......
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