Skip to content

Commit

Permalink
Refactor a loop for the sake of it just to trigger a Travis run
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Dec 2, 2018
1 parent bd396ce commit a97a34e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ static void kb_update(KbData *kbdata)
return;

/* foreach child */
while (TRUE)
do
{
guint kid;
gchar *str;
Expand All @@ -850,10 +850,9 @@ static void kb_update(KbData *kbdata)
kb = kb_index(gid, kid);
if (kb->key != key || kb->mods != mods)
keybindings_update_combo(kb, key, mods);

if (! gtk_tree_model_iter_next(model, &child))
break;
}
while (gtk_tree_model_iter_next(model, &child));

if (! gtk_tree_model_iter_next(model, &parent))
return;
gid++;
Expand Down

0 comments on commit a97a34e

Please sign in to comment.