Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
107db117
Commit
107db117
authored
Oct 25, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix favorite compositions broken. Fixes #361
parent
39d2567a
Pipeline
#9441
failed with stage
in 4 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/transitions/transitionlist/model/transitiontreemodel.cpp
View file @
107db117
...
...
@@ -98,14 +98,11 @@ void TransitionTreeModel::setFavorite(const QModelIndex &index, bool favorite, b
}
item
->
setData
(
AssetTreeModel
::
favCol
,
favorite
);
auto
id
=
item
->
dataColumn
(
AssetTreeModel
::
idCol
).
toString
();
QStringList
favs
=
KdenliveSettings
::
favorite_
effect
s
();
QStringList
favs
=
KdenliveSettings
::
favorite_
transition
s
();
if
(
favorite
)
{
favs
<<
id
;
}
else
{
favs
.
removeAll
(
id
);
}
KdenliveSettings
::
setFavorite_effects
(
favs
);
/*if (TransitionsRepository::get()->exists(id)) {
TransitionsRepository::get()->setFavorite(id, favorite);
}*/
KdenliveSettings
::
setFavorite_transitions
(
favs
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment