Skip to content

Commit

Permalink
Show status message on attempt to execute empty context action.
Browse files Browse the repository at this point in the history
If a user selects "context action" from the context menu then now the status message
'No context action command set for file type "%s".' will be shown. Closes geany#1641.
  • Loading branch information
lpaulsen93 committed Oct 14, 2017
1 parent fda8b97 commit 2e7cf1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,11 @@ void on_context_action1_activate(GtkMenuItem *menuitem, gpointer user_data)
}
g_free(command_line);
}
else
{
ui_set_statusbar(TRUE, _("No context action command set for file type \"%s\"."),
filetypes_get_display_name(doc->file_type));
}
g_free(word);
g_free(command);
}
Expand Down

0 comments on commit 2e7cf1d

Please sign in to comment.