From ad0fa16fd4e3102ae01b0c84de1f1d52242f99a4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 11 Apr 2014 15:58:51 +0200 Subject: Add all form field flags. Check flags before marking fields dirty. NoExport (and ReadOnly) fields shouldn't mark the document for saving. --- platform/x11/x11_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'platform/x11') diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 5b0266c5..58d0e2af 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -295,11 +295,15 @@ static void winopen(void) void winclose(pdfapp_t *app) { - closing = 1; + if (pdfapp_preclose(app)) + { + closing = 1; + } } int winsavequery(pdfapp_t *app) { + fprintf(stderr, "mupdf: discarded changes to document\n"); /* FIXME: temporary dummy implementation */ return DISCARD; } -- cgit v1.2.3