From 1a396978d78cb66f3c228d2ef7909cb8f3ecd9e6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 10 Jun 2011 13:57:33 +0200 Subject: add element seletors to .xml files; fix a few places where we expect package data Signed-off-by: Denys Vlasenko --- libreport/src/gui-wizard-gtk/wizard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libreport/src/gui-wizard-gtk/wizard.c') diff --git a/libreport/src/gui-wizard-gtk/wizard.c b/libreport/src/gui-wizard-gtk/wizard.c index 430c8a93..d7164d6d 100644 --- a/libreport/src/gui-wizard-gtk/wizard.c +++ b/libreport/src/gui-wizard-gtk/wizard.c @@ -1170,9 +1170,9 @@ static void check_bt_rating_and_allow_send(void) * but so far only oopses don't have rating, so for now we * skip the "kernel" manually */ - const char *component = get_problem_item_content_or_NULL(g_cd, FILENAME_COMPONENT); + const char *analyzer = get_problem_item_content_or_NULL(g_cd, FILENAME_ANALYZER); //FIXME: say "no" to special casing! - if (strcmp(component, "kernel") != 0) + if (analyzer && strcmp(analyzer, "Kerneloops") != 0) { const char *rating = get_problem_item_content_or_NULL(g_cd, FILENAME_RATING); //COMPAT, remove after 2.1 release -- cgit