[gtk/static-analysis-fixes: 7/13] listbase: Static analysis fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/static-analysis-fixes: 7/13] listbase: Static analysis fixes
- Date: Mon, 3 May 2021 11:45:02 +0000 (UTC)
commit b2bf48c3f006b3268f2f379098976d970e400ed2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 3 07:34:46 2021 -0400
listbase: Static analysis fixes
gtk/gtklistbase.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c
index 41e25858f5..5ef58dd4a4 100644
--- a/gtk/gtklistbase.c
+++ b/gtk/gtklistbase.c
@@ -439,19 +439,20 @@ gtk_list_base_select_item (GtkListBase *self,
* by the model, fall through to normal setting.
*/
}
+
if (success)
return;
if (modify)
{
if (gtk_selection_model_is_selected (model, pos))
- success = gtk_selection_model_unselect_item (model, pos);
+ gtk_selection_model_unselect_item (model, pos);
else
- success = gtk_selection_model_select_item (model, pos, FALSE);
+ gtk_selection_model_select_item (model, pos, FALSE);
}
else
{
- success = gtk_selection_model_select_item (model, pos, TRUE);
+ gtk_selection_model_select_item (model, pos, TRUE);
}
gtk_list_item_tracker_set_position (priv->item_manager,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]