Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make build_get/set_(current_)menu_item functions symmetrical #1225

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ const gchar *build_get_current_menu_item(const GeanyBuildGroup grp, const guint
g_return_val_if_fail(fld < GEANY_BC_CMDENTRIES_COUNT, NULL);
g_return_val_if_fail(cmd < build_groups_count[grp], NULL);

if (get_build_cmd(NULL, grp, cmd, NULL, &src) == NULL)
return NULL;
if (build_get_current_source(grp, cmd, &src))
return build_get_menu_item(src, grp, cmd, fld);

return build_get_menu_item(src, grp, cmd, fld);
return NULL;
}


Expand Down