[gnome-contacts/gnome-3-34] Fix show-contact action not launching app if closed
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/gnome-3-34] Fix show-contact action not launching app if closed
- Date: Wed, 2 Oct 2019 05:58:21 +0000 (UTC)
commit 67978ebe29d18fa8a285b2e53a2cbdbefef7b47f
Author: Michael Gratton <mike vee net>
Date: Sun Sep 8 08:51:24 2019 +1000
Fix show-contact action not launching app if closed
Somewhat embarrasingly, I only tested the show-contact action when
Contacts was runing. It needs to chain to activate so that the app
actually starts up if invoked when not running.
Fixes GNOME/geary#556
src/contacts-app.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 180d83c..3ad4630 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -389,9 +389,9 @@ public class Contacts.App : Gtk.Application {
}
private void on_show_contact(SimpleAction action, Variant? param) {
+ activate();
+
var individual = param as string;
- if (window != null)
- window.present ();
if (individual != null)
show_individual.begin (individual);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]