diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2009-02-26 13:40:18 +0000 |
|---|---|---|
| committer | tweenk <tweenk@users.sourceforge.net> | 2009-02-26 13:40:18 +0000 |
| commit | f70a9f2048cf268a2fcb10d71935e449fd8e44f3 (patch) | |
| tree | 231d2839f6c23670e4af992632c91f6c0335b2b5 /src/inkscape.cpp | |
| parent | Remove the svn:executable property from README.ca.txt (diff) | |
| download | inkscape-f70a9f2048cf268a2fcb10d71935e449fd8e44f3.tar.gz inkscape-f70a9f2048cf268a2fcb10d71935e449fd8e44f3.zip | |
Tentative fix for LP bug #168922: don't save prefs n crash handler
(bzr r7376)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index ae5258904..b497367cc 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -460,11 +460,8 @@ inkscape_init (SPObject * object) new (&inkscape->document_set) std::map<SPDocument *, int>(); inkscape->menus = sp_repr_read_mem (_(menus_skeleton), MENUS_SKELETON_SIZE, NULL); - inkscape->desktops = NULL; - inkscape->dialogs_toggle = TRUE; - inkscape->mapalt=GDK_MOD1_MASK; } @@ -658,7 +655,8 @@ inkscape_crash_handler (int /*signum*/) } } - Inkscape::Preferences::unload(); + // do not save the preferences since they can be in a corrupted state + Inkscape::Preferences::unload(false); fprintf (stderr, "Emergency save completed. Inkscape will close now.\n"); fprintf (stderr, "If you can reproduce this crash, please file a bug at www.inkscape.org\n"); @@ -749,7 +747,7 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui) inkscape->use_gui = use_gui; inkscape->argv0 = g_strdup(argv0); - /* Load the preferences and menus; Later menu layout should be merged into prefs */ + /* Load the preferences and menus */ Inkscape::Preferences *prefs = Inkscape::Preferences::get(); prefs->load(use_gui, false); inkscape_load_menus(inkscape); @@ -1414,8 +1412,6 @@ inkscape_get_all_desktops(std::list< SPDesktop* >& listbuf) } } - - /* Local Variables: mode:c++ |
