[evolution/gnome-42] I#1900 - iTIP formatter shows twice "Attendee status updated"
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-42] I#1900 - iTIP formatter shows twice "Attendee status updated"
- Date: Tue, 10 May 2022 15:47:26 +0000 (UTC)
commit ecfcd2d6bb411ad6484b646937ce47444ca0f7c1
Author: Milan Crha <mcrha redhat com>
Date: Tue May 10 17:40:34 2022 +0200
I#1900 - iTIP formatter shows twice "Attendee status updated"
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1900
src/modules/itip-formatter/itip-view.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/itip-formatter/itip-view.c b/src/modules/itip-formatter/itip-view.c
index a9d0bf97a2..c4b30cc02b 100644
--- a/src/modules/itip-formatter/itip-view.c
+++ b/src/modules/itip-formatter/itip-view.c
@@ -198,6 +198,8 @@ struct _ItipViewPrivate {
gboolean state_keep_alarm_check;
gboolean state_inherit_alarm_check;
gint state_response_id;
+
+ gboolean attendee_status_updated;
};
enum {
@@ -3894,9 +3896,12 @@ set_buttons_sensitive (ItipView *view)
if (enabled && itip_view_get_mode (view) == ITIP_VIEW_MODE_REPLY &&
view->priv->comp && same_attendee_status (view, view->priv->comp)) {
- itip_view_add_lower_info_item (
- view, ITIP_VIEW_INFO_ITEM_TYPE_INFO,
- _("Attendee status updated"));
+ if (!view->priv->attendee_status_updated) {
+ view->priv->attendee_status_updated = TRUE;
+ itip_view_add_lower_info_item (
+ view, ITIP_VIEW_INFO_ITEM_TYPE_INFO,
+ _("Attendee status updated"));
+ }
enable_button (view, BUTTON_UPDATE_ATTENDEE_STATUS, FALSE);
}
@@ -5595,6 +5600,7 @@ modify_object_cb (GObject *ecalclient,
} else {
update_item_progress_info (view, NULL);
+ view->priv->attendee_status_updated = TRUE;
itip_view_add_lower_info_item (
view, ITIP_VIEW_INFO_ITEM_TYPE_INFO,
_("Attendee status updated"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]