From 09325acb6c26660fa4827360c94957dc7729986c Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 1 Dec 2025 18:30:11 +0000 Subject: [PATCH] forgot git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@833 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/dialog/filechooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/filechooser.c b/src/dialog/filechooser.c index 2403038..990c94f 100644 --- a/src/dialog/filechooser.c +++ b/src/dialog/filechooser.c @@ -130,7 +130,7 @@ static void okay_activate(MwWidget handle, void* user, void* call) { MwWidget msgbox = MwMessageBox(handle->parent, "File is not permitted here!", "Error", MwMB_ICONERROR | MwMB_BUTTONOK); MwAddUserHandler(MwMessageBoxGetChild(msgbox, MwMB_BUTTONOK), MwNactivateHandler, msgbox_okay, NULL); } else { - MwDispatchUserHandler(handle->parent, MwNfileChosenHandler, p); + MwDispatchUserHandler(handle->parent, fc->dir_only ? MwNdirectoryChosenHandler : MwNfileChosenHandler, p); okay(fc->okay, NULL, NULL); }