[evolution] I#574 - Displays Tasks from just disabled Accounts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#574 - Displays Tasks from just disabled Accounts
- Date: Tue, 20 Aug 2019 12:35:12 +0000 (UTC)
commit 03ea0d273b0e9215f38a84ddfaaf0a6f4fa3719c
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 20 14:31:03 2019 +0200
I#574 - Displays Tasks from just disabled Accounts
Closes https://gitlab.gnome.org/GNOME/evolution/issues/574
src/e-util/e-source-selector.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/e-util/e-source-selector.c b/src/e-util/e-source-selector.c
index 0e4245ef66..f05424d8b4 100644
--- a/src/e-util/e-source-selector.c
+++ b/src/e-util/e-source-selector.c
@@ -886,8 +886,9 @@ source_selector_source_removed_cb (ESourceRegistry *registry,
if (e_source_selector_get_source_is_busy (selector, source))
source_selector_dec_busy_sources (selector);
- if (e_source_selector_source_is_selected (selector, source))
- g_signal_emit (selector, signals[SOURCE_UNSELECTED], 0, source);
+ /* Always notify about deselect, regardless whether it is really selected,
+ because listeners won't always know the source is gone otherwise. */
+ g_signal_emit (selector, signals[SOURCE_UNSELECTED], 0, source);
source_selector_build_model (selector);
}
@@ -933,8 +934,9 @@ source_selector_source_disabled_cb (ESourceRegistry *registry,
if (e_source_selector_get_source_is_busy (selector, source))
source_selector_dec_busy_sources (selector);
- if (e_source_selector_source_is_selected (selector, source))
- g_signal_emit (selector, signals[SOURCE_UNSELECTED], 0, source);
+ /* Always notify about deselect, regardless whether it is really selected,
+ because listeners won't always know the source is gone otherwise. */
+ g_signal_emit (selector, signals[SOURCE_UNSELECTED], 0, source);
source_selector_build_model (selector);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]