Commit 32d8c095 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix favorite compositions broken. Fixes #361

parent e6075212
Pipeline #9442 passed with stage
in 14 minutes and 58 seconds
...@@ -102,14 +102,11 @@ void TransitionTreeModel::setFavorite(const QModelIndex &index, bool favorite, b ...@@ -102,14 +102,11 @@ void TransitionTreeModel::setFavorite(const QModelIndex &index, bool favorite, b
} }
item->setData(AssetTreeModel::favCol, favorite); item->setData(AssetTreeModel::favCol, favorite);
auto id = item->dataColumn(AssetTreeModel::idCol).toString(); auto id = item->dataColumn(AssetTreeModel::idCol).toString();
QStringList favs = KdenliveSettings::favorite_effects(); QStringList favs = KdenliveSettings::favorite_transitions();
if (favorite) { if (favorite) {
favs << id; favs << id;
} else { } else {
favs.removeAll(id); favs.removeAll(id);
} }
KdenliveSettings::setFavorite_effects(favs); KdenliveSettings::setFavorite_transitions(favs);
/*if (TransitionsRepository::get()->exists(id)) {
TransitionsRepository::get()->setFavorite(id, favorite);
}*/
} }
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