Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'unix/dialog.c')
-rw-r--r--unix/dialog.c5
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...");