From 7998ecbf6ddd49a4f2492c2b12762e380d9f5ecb Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 28 Aug 2008 20:45:29 +0000 Subject: [PATCH] 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) --- src/inkscape.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.30.2