From 2fff772bdd81459304cae888312766fe99dfb360 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 15 Jan 2008 04:27:00 +0000 Subject: abstract use of sodipodi:modified (bzr r4490) --- src/ui/view/edit-widget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui/view/edit-widget.cpp') diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp index ff8b288fd..78cf76096 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -1203,8 +1203,7 @@ EditWidget::shutdown() return false; SPDocument *doc = _desktop->doc(); - if (sp_document_repr_root(doc)->attribute("sodipodi:modified") != NULL) - { + if (doc->isModified()) { gchar *markup; /// \todo FIXME !!! obviously this will have problems if the document /// name contains markup characters -- cgit v1.2.3