|
|
af40a0 |
From 12fa036ee7689774cfdf941ae7fda04d18d34ae8 Mon Sep 17 00:00:00 2001
|
|
|
af40a0 |
From: Carlos Soriano <csoriano@gnome.org>
|
|
|
af40a0 |
Date: Wed, 8 Aug 2018 14:32:56 +0200
|
|
|
af40a0 |
Subject: [PATCH 11/11] dbus-manager: Fix not holding application
|
|
|
af40a0 |
|
|
|
af40a0 |
The code was releasing it on the callback but forgot to put the hold
|
|
|
af40a0 |
on the initial call.
|
|
|
af40a0 |
---
|
|
|
af40a0 |
src/nautilus-dbus-manager.c | 4 ++++
|
|
|
af40a0 |
1 file changed, 4 insertions(+)
|
|
|
af40a0 |
|
|
|
af40a0 |
diff --git a/src/nautilus-dbus-manager.c b/src/nautilus-dbus-manager.c
|
|
|
af40a0 |
index 728b1dea2..f11ede0ad 100644
|
|
|
af40a0 |
--- a/src/nautilus-dbus-manager.c
|
|
|
af40a0 |
+++ b/src/nautilus-dbus-manager.c
|
|
|
af40a0 |
@@ -80,6 +80,8 @@ handle_redo (NautilusDBusFileOperations *object,
|
|
|
af40a0 |
NautilusFileUndoManager *undo_manager = NULL;
|
|
|
af40a0 |
gint *handler_id = g_new0(int, 1);
|
|
|
af40a0 |
|
|
|
af40a0 |
+ g_application_hold (g_application_get_default ());
|
|
|
af40a0 |
+
|
|
|
af40a0 |
undo_manager = nautilus_file_undo_manager_get ();
|
|
|
af40a0 |
*handler_id = g_signal_connect_swapped (undo_manager, "undo-changed",
|
|
|
af40a0 |
G_CALLBACK (undo_redo_on_finished),
|
|
|
af40a0 |
@@ -97,6 +99,8 @@ handle_undo (NautilusDBusFileOperations *object,
|
|
|
af40a0 |
NautilusFileUndoManager *undo_manager = NULL;
|
|
|
af40a0 |
gint *handler_id = g_new0(int, 1);
|
|
|
af40a0 |
|
|
|
af40a0 |
+ g_application_hold (g_application_get_default ());
|
|
|
af40a0 |
+
|
|
|
af40a0 |
undo_manager = nautilus_file_undo_manager_get ();
|
|
|
af40a0 |
*handler_id = g_signal_connect_swapped (undo_manager, "undo-changed",
|
|
|
af40a0 |
G_CALLBACK (undo_redo_on_finished),
|
|
|
af40a0 |
--
|
|
|
af40a0 |
2.17.1
|
|
|
af40a0 |
|