67d2f3bb9e
Resolves: RHBZ#2071116
30 lines
898 B
Diff
30 lines
898 B
Diff
From 7cf8457f0b56e1e48f0662bde8fc2ed079fb4d9b Mon Sep 17 00:00:00 2001
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
Date: Fri, 13 May 2022 14:32:12 -0700
|
|
Subject: [PATCH] session: ensure task is always completed
|
|
|
|
This can happen if org.gnome.desktop.privacy remember-recent-files is set
|
|
to false, causing a segfault at shutdown when persisting the session back
|
|
to disk.
|
|
|
|
Fixes #371
|
|
---
|
|
src/editor-session.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/editor-session.c b/src/editor-session.c
|
|
index 44d3bf2..466da42 100644
|
|
--- a/src/editor-session.c
|
|
+++ b/src/editor-session.c
|
|
@@ -1103,6 +1103,7 @@ editor_session_update_recent_worker (GTask *task,
|
|
/* Just delete recent files if the user doesn't want them */
|
|
g_autofree gchar *path = get_bookmarks_filename ();
|
|
g_unlink (path);
|
|
+ g_task_return_boolean (task, TRUE);
|
|
return;
|
|
}
|
|
|
|
--
|
|
GitLab
|
|
|