diff options
| author | MenTaLguY <mental@rydia.net> | 2008-01-15 05:08:28 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2008-01-15 05:08:28 +0000 |
| commit | e50d63f42224cdafece30d78265fb22482fd49d4 (patch) | |
| tree | 2b292247e0809a34e169478ea94ad9b2947b51d8 /src/dialogs/export.cpp | |
| parent | abstract use of sodipodi:modified (diff) | |
| download | inkscape-e50d63f42224cdafece30d78265fb22482fd49d4.tar.gz inkscape-e50d63f42224cdafece30d78265fb22482fd49d4.zip | |
stop toggling insensitive state for modification flag updates (fixes critical bug #182401)
In order to do this, I got rid of sodipodi:modified in favor of a simple
flag in SPDocument, also renaming SPDocument::{set,is}Modified to
SPDocument::{set,is}ModifiedSinceSave
(bzr r4491)
Diffstat (limited to '')
| -rw-r--r-- | src/dialogs/export.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index d664ef729..14d338ed5 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -1235,10 +1235,11 @@ sp_export_export_clicked (GtkButton */*button*/, GtkObject *base) sp_repr_set_svg_double(repr, "inkscape:export-ydpi", ydpi); modified = true; } - - if (modified) - doc->setModified(); sp_document_set_undo_sensitive(doc, saved); + + if (modified) { + doc->setModifiedSinceSave(); + } break; } case SELECTION_SELECTION: { @@ -1275,12 +1276,11 @@ sp_export_export_clicked (GtkButton */*button*/, GtkObject *base) modified = true; } } + sp_document_set_undo_sensitive(doc, saved); if (modified) { - doc->setModified(); + doc->setModifiedSinceSave(); } - - sp_document_set_undo_sensitive(doc, saved); break; } default: |
