summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp4
1 files changed, 4 insertions, 0 deletions
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();