summaryrefslogtreecommitdiff
path: root/debian/patches/ImportDialog-Fix-import-dialog.patch
blob: 1599407beb867445cce1005247de87927afc1197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Jeremias Ortega <jeremias@ortega.tech>
Date: Mon, 9 Nov 2020 22:39:01 -0600
Subject: ImportDialog: Fix import dialog

The import dialog fails to import files without showing any warning.
The dialog closes before it finishes the import process and cancels it.

This is solved by making the import button not return a response directly.

Bug: https://gitlab.gnome.org/GNOME/seahorse/-/issues/236
Bug-Debian: https://bugs.debian.org/931558
Origin: upstream, 40~alpha, commit:6cc0fe7381a4c9536123bf877b3e055774b2f0a9
---
 src/import-dialog.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/import-dialog.vala b/src/import-dialog.vala
index 983b7e4..650aaa2 100644
--- a/src/import-dialog.vala
+++ b/src/import-dialog.vala
@@ -41,7 +41,7 @@ public class Seahorse.ImportDialog : Gtk.Dialog {
         this.import.get_style_context().add_class("suggested-action");
         this.import.importing.connect(() => this.viewer.clear_error());
         this.import.imported.connect(on_import_button_imported);
-        add_action_widget(this.import, Gtk.ResponseType.OK);
+        ((Gtk.HeaderBar) get_header_bar()).pack_end(this.import);
 
         this.viewer = new Gcr.ViewerWidget();
         this.viewer.added.connect((v, r, parsed) => this.import.add_parsed(parsed));