summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-12-06 08:21:18 +0000
committerJon A. Cruz <jon@joncruz.org>2010-12-06 08:21:18 +0000
commit75684fbe34e2f04c36f9e5ad7e7931286e755d38 (patch)
tree3efa386abfb1817e94e305fdcd353d0313d29d65 /src/inkscape.cpp
parentRestore copies of renamed icons on certain gtk versions. Fixes bug #651678. (diff)
downloadinkscape-75684fbe34e2f04c36f9e5ad7e7931286e755d38.tar.gz
inkscape-75684fbe34e2f04c36f9e5ad7e7931286e755d38.zip
Stop background rendering once crash handler is triggered.
(bzr r9940)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 8b31ba267..e4edb9d10 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -553,6 +553,13 @@ inkscape_deactivate_desktop_private (Inkscape::Application */*inkscape*/, SPDesk
#define SP_INDENT 8
+static bool crashIsHappening = false;
+
+bool inkscapeIsCrashing()
+{
+ return crashIsHappening;
+}
+
static void
inkscape_crash_handler (int /*signum*/)
{
@@ -580,6 +587,8 @@ inkscape_crash_handler (int /*signum*/)
}
recursion = TRUE;
+ crashIsHappening = true;
+
EventTracker<SimpleEvent<Inkscape::Debug::Event::CORE> > tracker("crash");
tracker.set<SimpleEvent<> >("emergency-save");