Break loop if is_true was set to false in If

This commit is contained in:
Mikael Magnusson 2013-09-17 18:52:11 +02:00
parent a8a2375c44
commit f469a46da1

View file

@ -313,7 +313,7 @@ static gboolean run_func_if(ObActionsData *data, gpointer options)
gboolean is_true = TRUE;
guint i;
for (i = 0; i < o->queries->len; ++i) {
for (i = 0; is_true && i < o->queries->len; ++i) {
Query *q = g_array_index(o->queries, Query*, i);
ObClient *query_target = NULL;