summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/entity-entry.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-05-11 09:35:03 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-05-11 09:35:03 +0000
commit8e03be1b452837fd438b811fbdcfe9ac65765bc4 (patch)
treecbfcbf8fd6906a9edf47fe8c5d48833472cf3cd4 /src/ui/widget/entity-entry.cpp
parentGTK+3 drawing of icons (diff)
downloadinkscape-8e03be1b452837fd438b811fbdcfe9ac65765bc4.tar.gz
inkscape-8e03be1b452837fd438b811fbdcfe9ac65765bc4.zip
Fix for 997886 : Document Metadata : Crash when saving with 2 documents open
(bzr r11353)
Diffstat (limited to 'src/ui/widget/entity-entry.cpp')
-rw-r--r--src/ui/widget/entity-entry.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/widget/entity-entry.cpp b/src/ui/widget/entity-entry.cpp
index be43e4fda..2a6e2bcd0 100644
--- a/src/ui/widget/entity-entry.cpp
+++ b/src/ui/widget/entity-entry.cpp
@@ -26,6 +26,7 @@
#include "ui/widget/registry.h"
#include "sp-root.h"
#include "document-undo.h"
+#include "document-private.h"
#include "verbs.h"
#include "entity-entry.h"
@@ -105,8 +106,9 @@ EntityLineEntry::on_changed()
SPDocument *doc = SP_ACTIVE_DOCUMENT;
Glib::ustring text = static_cast<Gtk::Entry*>(_packable)->get_text();
if (rdf_set_work_entity (doc, _entity, text.c_str())) {
- DocumentUndo::done(doc, SP_VERB_NONE,
- /* TODO: annotate */ "entity-entry.cpp:101");
+ if (doc->priv->sensitive) {
+ DocumentUndo::done(doc, SP_VERB_NONE, "Document metadata updated");
+ }
}
_wr->setUpdating (false);
}
@@ -155,7 +157,7 @@ EntityMultiLineEntry::on_changed()
Gtk::TextView *tv = static_cast<Gtk::TextView*>(s->get_child());
Glib::ustring text = tv->get_buffer()->get_text();
if (rdf_set_work_entity (doc, _entity, text.c_str())) {
- DocumentUndo::done(doc, SP_VERB_NONE,
+ DocumentUndo::done(doc, SP_VERB_NONE,
/* TODO: annotate */ "entity-entry.cpp:146");
}
_wr->setUpdating (false);