aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-05-14 18:00:17 +0800
committerMilan Crha <mcrha@redhat.com>2013-05-14 18:00:17 +0800
commit16bf152272b67115380340c617e397d8e869334c (patch)
tree6dd43bf4dbc19bb00c955ce5f9a1462848076a4d /e-util
parentf0151c785648b44850b46fa50336126c282fcc58 (diff)
downloadgsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar.gz
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar.bz2
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar.lz
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar.xz
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.tar.zst
gsoc2013-evolution-16bf152272b67115380340c617e397d8e869334c.zip
Bug #699980 - Calendar delete does not remove events from view
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-source-selector.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/e-util/e-source-selector.c b/e-util/e-source-selector.c
index f9d001a4f0..07a375448e 100644
--- a/e-util/e-source-selector.c
+++ b/e-util/e-source-selector.c
@@ -1638,6 +1638,11 @@ e_source_selector_unselect_source (ESourceSelector *selector,
/* Make sure the ESource is in our tree model. */
source_index = selector->priv->source_index;
reference = g_hash_table_lookup (source_index, source);
+
+ /* can be NULL when the source was just removed */
+ if (!reference)
+ return;
+
g_return_if_fail (gtk_tree_row_reference_valid (reference));
class = E_SOURCE_SELECTOR_GET_CLASS (selector);