From 4c88966ad38b4365401f45401b3cab38c9eea86e Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 5 Apr 2012 21:09:24 +0200 Subject: add test code for bug #967416 (bzr r11159) --- src/file.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 0657f0b10..2ce532f03 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -643,6 +643,17 @@ file_save(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring &uri, return FALSE; } + if (SP_ACTIVE_DESKTOP) { + if (! SP_ACTIVE_DESKTOP->event_log) { + g_message("file_save: ->event_log == NULL. please report to bug #967416"); + } + if (! SP_ACTIVE_DESKTOP->messageStack()) { + g_message("file_save: ->messageStack() == NULL. please report to bug #967416"); + } + } else { + g_message("file_save: SP_ACTIVE_DESKTOP == NULL. please report to bug #967416"); + } + SP_ACTIVE_DESKTOP->event_log->rememberFileSave(); SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Document saved.")); return true; -- cgit v1.2.3