From 7e64d1560bcacc61a423c3c5efc180b59f1bfba0 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 5 May 2026 00:44:50 +0200 Subject: [PATCH] save_schematic(): warn user if file changed externally since loading by xschem even if "no_ask_save" (no confirmation on save) is set --- src/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/save.c b/src/save.c index ef3181c2..8c3b72f2 100644 --- a/src/save.c +++ b/src/save.c @@ -3466,7 +3466,7 @@ int save_schematic(const char *schname, int fast) /* 20171020 added return value else { /* user asks to save to same filename */ if(!stat(xctx->sch[xctx->currsch], &buf)) { if(xctx->time_last_modify && xctx->time_last_modify != buf.st_mtime) { - tclvareval("ask_save_optional \"Schematic file: ", xctx->sch[xctx->currsch], + tclvareval("ask_save \"Schematic file: ", xctx->sch[xctx->currsch], "\nHas been changed since opening.\nSave anyway?\" 0", NULL); if(strcmp(tclresult(), "yes") ) return 0; }