From: buliabyak Date: Thu, 28 Aug 2008 20:45:29 +0000 (+0000) Subject: fix crash on trying to autosave with no documents (e.g. when inkscape was given a... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7998ecbf6ddd49a4f2492c2b12762e380d9f5ecb;p=inkscape.git fix crash on trying to autosave with no documents (e.g. when inkscape was given a wrong filename on the command line and hangs in the file-not-found dialog) --- diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 16813e46b..10857e94a 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -306,6 +306,10 @@ typedef int uid_t; */ static gint inkscape_autosave(gpointer) { + if (!inkscape->documents) { // nothing to autosave + return TRUE; + } + // Use UID for separating autosave-documents between users if directory is multiuser uid_t uid = getuid();