X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-dimming-rule.c;h=827c62274bc2eb59f56377dac47dc670ed1f2ed4;hb=180a6c986b177f0818ca0e25d35da5bb702d2039;hp=4b7f13bf3b47f583c93b6f61dfdf4bd21c099c7f;hpb=92a227dadc4696578fa93e5af21b7a12528de924;p=modest diff --git a/src/modest-dimming-rule.c b/src/modest-dimming-rule.c index 4b7f13b..827c622 100644 --- a/src/modest-dimming-rule.c +++ b/src/modest-dimming-rule.c @@ -153,8 +153,10 @@ modest_dimming_rule_process (ModestDimmingRule *self) /* Update dimming status */ action = modest_window_get_action (priv->win, priv->action_path); - g_return_if_fail (action != NULL); - gtk_action_set_sensitive (action, !dimmed); + if (action == NULL) + g_printerr ("modest: action path '%s' has not associatd action\n", priv->action_path); + else + gtk_action_set_sensitive (action, !dimmed); } void