Skip to content

Commit

Permalink
Fix "Cancel": GEANY_RESPONSE_OPEN_RECURSIVELY wasn't checking against…
Browse files Browse the repository at this point in the history
… 'response'
  • Loading branch information
konsolebox committed Aug 5, 2016
1 parent 59f5f05 commit 836bc85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static gboolean open_file_dialog_handle_response(GtkWidget *dialog, gint respons
{
gboolean ret = TRUE;

if (response == GTK_RESPONSE_ACCEPT || response == GEANY_RESPONSE_VIEW || GEANY_RESPONSE_OPEN_RECURSIVELY)
if (response == GTK_RESPONSE_ACCEPT || response == GEANY_RESPONSE_VIEW || response == GEANY_RESPONSE_OPEN_RECURSIVELY)
{
GSList *filelist;
GeanyFiletype *ft = NULL;
Expand Down Expand Up @@ -395,6 +395,8 @@ static GtkWidget *create_open_file_dialog(gboolean recursive)
{
title = _("Open Files Recursively");
open_button_text = _("_Open Recursively");
g_assert(GEANY_RESPONSE_OPEN_RECURSIVELY != GTK_RESPONSE_ACCEPT);
g_assert(GEANY_RESPONSE_OPEN_RECURSIVELY != GTK_RESPONSE_CANCEL);
open_response_id = GEANY_RESPONSE_OPEN_RECURSIVELY;
view_button_text = _("_View Recursively");
}
Expand Down

0 comments on commit 836bc85

Please sign in to comment.