From: buliabyak Date: Wed, 17 Jan 2007 22:54:46 +0000 (+0000) Subject: display 'Saving document...' visible when saving takes a long time X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cac261a42ff2b1bdec65aad94459c48e596661cc;p=inkscape.git display 'Saving document...' visible when saving takes a long time --- 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); }