[gnome-software/1643-age-rating-dialog-fails-to-show-social-chat-intense] gs-age-rating-context-dialog: Fix attribute processing
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1643-age-rating-dialog-fails-to-show-social-chat-intense] gs-age-rating-context-dialog: Fix attribute processing
- Date: Tue, 15 Feb 2022 17:36:27 +0000 (UTC)
commit 3f41a7a9f016841f2a57733fee47813518cdae4e
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 15 18:34:25 2022 +0100
gs-age-rating-context-dialog: Fix attribute processing
Remove leftover 'break' statements, to process all attributes, instead
of stop on the first attribute, event when it doesn't influence the rating.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1643
src/gs-age-rating-context-dialog.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/src/gs-age-rating-context-dialog.c b/src/gs-age-rating-context-dialog.c
index 02b85a7be..f2d7d25c2 100644
--- a/src/gs-age-rating-context-dialog.c
+++ b/src/gs-age-rating-context-dialog.c
@@ -821,7 +821,6 @@ gs_age_rating_context_dialog_process_attributes (AsContentRating
continue;
callback (violence_group[i], rating_value, user_data);
- break;
}
for (gsize i = 0; social_group[i] != NULL; i++) {
@@ -835,7 +834,6 @@ gs_age_rating_context_dialog_process_attributes (AsContentRating
continue;
callback (social_group[i], rating_value, user_data);
- break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]