diff options
Diffstat (limited to 'unix/dialog.c')
-rw-r--r-- | unix/dialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/dialog.c b/unix/dialog.c index 7e9051be..5846466a 100644 --- a/unix/dialog.c +++ b/unix/dialog.c @@ -2143,7 +2143,10 @@ GtkWidget *layout_ctrls( case CTRL_FONTSELECT: { GtkWidget *ww; - if (!ctrl->fileselect.just_button) { + bool just_button = (ctrl->type == CTRL_FILESELECT && + ctrl->fileselect.just_button); + + if (!just_button) { const char *browsebtn = (ctrl->type == CTRL_FILESELECT ? "Browse..." : "Change..."); |