From cac261a42ff2b1bdec65aad94459c48e596661cc Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 17 Jan 2007 22:54:46 +0000 Subject: [PATCH] display 'Saving document...' visible when saving takes a long time --- src/file.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/file.cpp b/src/file.cpp index 568d32572..491588f1e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -43,6 +43,7 @@ #include "style.h" #include "print.h" #include "file.h" +#include "message.h" #include "message-stack.h" #include "ui/dialog/filedialog.h" #include "prefs-utils.h" @@ -693,6 +694,9 @@ sp_file_save(gpointer object, gpointer data) { if (!SP_ACTIVE_DOCUMENT) return false; + + SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::IMMEDIATE_MESSAGE, _("Saving document...")); + sp_namedview_document_from_window(SP_ACTIVE_DESKTOP); return sp_file_save_document(SP_ACTIVE_DOCUMENT); } -- 2.30.2