gtk-demo: Check a return value

Found by coverity.
This commit is contained in:
Matthias Clasen 2015-07-17 15:51:05 -04:00
parent 6c862f229f
commit 770fc90e7c

View File

@ -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.