Commit 6ac811c5 authored by Dmitry Kolesnikov's avatar Dmitry Kolesnikov Committed by Nate Graham
Browse files

Fix the loss of rating stars when changing focus

If you select a rated track in the panel of the current playlist, and
then switch the focus to, for example, some track in the central
panel, the rating display on the panel of the current playlist will
disappear.

This is probably happening because Qt thinks the object is still
selected. This may be right for a program, but not for a human.
Removing !isSelected solves this problem.
parent afd0db0d
......@@ -344,7 +344,7 @@ BasePlayListDelegate {
readOnly: false
starRating: rating
visible: (playListEntry.editingRating || (rating > 0 && !containsMouse && !isSelected && !playListEntry.hasActiveFocus && !simpleMode && !ElisaApplication.useFavoriteStyleRatings)) && playListEntry.wideMode
visible: (playListEntry.editingRating || (rating > 0 && !containsMouse && !playListEntry.hasActiveFocus && !simpleMode && !ElisaApplication.useFavoriteStyleRatings)) && playListEntry.wideMode
onRatingEdited: {
ElisaApplication.musicManager.updateSingleFileMetaData(playListEntry.fileName, DataTypes.RatingRole, starRating);
......@@ -353,7 +353,7 @@ BasePlayListDelegate {
}
Kirigami.Icon {
visible: rating == 10 && !containsMouse && !isSelected && !playListEntry.hasActiveFocus && !simpleMode && ElisaApplication.useFavoriteStyleRatings
visible: rating == 10 && !containsMouse && !playListEntry.hasActiveFocus && !simpleMode && ElisaApplication.useFavoriteStyleRatings
implicitWidth: Kirigami.Units.iconSizes.smallMedium
implicitHeight: Kirigami.Units.iconSizes.smallMedium
......
Supports Markdown
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