[seahorse] ImportDialog: Fix import dialog
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] ImportDialog: Fix import dialog
- Date: Sat, 5 Dec 2020 20:48:30 +0000 (UTC)
commit 6cc0fe7381a4c9536123bf877b3e055774b2f0a9
Author: Jeremias Ortega <jeremias ortega tech>
Date: Mon Nov 9 22:39:01 2020 -0600
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.
Fixes https://gitlab.gnome.org/GNOME/seahorse/-/issues/236
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 983b7e46..650aaa29 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]