projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1963e47
)
Added an extra check
author
Sergio Villar Senin
<svillar@igalia.com>
Fri, 6 Feb 2009 16:12:24 +0000
(16:12 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Fri, 6 Feb 2009 16:12:24 +0000
(16:12 +0000)
pmo-trunk-r7415
src/modest-ui-dimming-manager.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-dimming-manager.c
b/src/modest-ui-dimming-manager.c
index
be76897
..
84f5f73
100644
(file)
--- a/
src/modest-ui-dimming-manager.c
+++ b/
src/modest-ui-dimming-manager.c
@@
-144,7
+144,7
@@
modest_ui_dimming_manager_dispose (GObject *obj)
priv = MODEST_UI_DIMMING_MANAGER_GET_PRIVATE(obj);
priv = MODEST_UI_DIMMING_MANAGER_GET_PRIVATE(obj);
- if (priv->delayed_calls != NULL) {
+ if (priv->delayed_calls != NULL && (g_hash_table_size (priv->delayed_calls) > 0)) {
/* Remove all pending calls */
g_hash_table_foreach (priv->delayed_calls,
remove_all_timeouts,
/* Remove all pending calls */
g_hash_table_foreach (priv->delayed_calls,
remove_all_timeouts,