From 23d5d1d03171c41fd0f3da9e45261677214fe006 Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Sat, 23 Jan 2021 11:09:11 +0100 Subject: [PATCH] Zenity: add --confirm-overwrite for save dialog The save dialog now prompts the user for confirmation if the selected path already exists. --- src/nfd_zenity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nfd_zenity.c b/src/nfd_zenity.c index 43ccc6d..3360135 100644 --- a/src/nfd_zenity.c +++ b/src/nfd_zenity.c @@ -248,6 +248,7 @@ NFD_SaveDialog(const nfdchar_t* filterList, const nfdchar_t* defaultPath, nfdcha command[1] = strdup("--file-selection"); command[2] = strdup("--title=Save File"); command[3] = strdup("--save"); + command[4] = strdup("--confirm-overwrite"); char* stdOut = NULL; nfdresult_t result =