forked from AuroraMiddleware/gtk
gtk-demo: Check a return value
Found by coverity.
This commit is contained in:
parent
6c862f229f
commit
770fc90e7c
@ -158,9 +158,8 @@ activate_run (GSimpleAction *action,
|
||||
GtkTreeIter iter;
|
||||
|
||||
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
|
||||
gtk_tree_selection_get_selected (selection, &model, &iter);
|
||||
|
||||
run_example_for_row (window, model, &iter);
|
||||
if (gtk_tree_selection_get_selected (selection, &model, &iter))
|
||||
run_example_for_row (window, model, &iter);
|
||||
}
|
||||
|
||||
/* Stupid syntax highlighting.
|
||||
|
Loading…
Reference in New Issue
Block a user