diff options
author | Milan Crha <mcrha@redhat.com> | 2012-08-21 23:52:31 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-08-21 23:52:31 +0800 |
commit | b97a43817982d259244eae23130feec890955929 (patch) | |
tree | 3f5f172cfff3acf1d3ba3223bf5c2fb525417c84 /calendar/gui | |
parent | e9749faddd37636c205db088aa2775da92d7494f (diff) | |
download | gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar.gz gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar.bz2 gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar.lz gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar.xz gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.tar.zst gsoc2013-evolution-b97a43817982d259244eae23130feec890955929.zip |
Bug #678476 - Critical warnings on calendar factory console
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-model.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 246d3dc2bd..8de4244902 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -3438,7 +3438,10 @@ e_cal_model_set_search_query (ECalModel *model, if (priv->search_sexp) g_free (priv->search_sexp); - priv->search_sexp = g_strdup (sexp); + if (!sexp || !*sexp) + priv->search_sexp = NULL; + else + priv->search_sexp = g_strdup (sexp); redo_queries (model); } @@ -3463,7 +3466,10 @@ e_cal_model_set_search_query_with_time_range (ECalModel *model, if (priv->search_sexp) g_free (priv->search_sexp); - priv->search_sexp = g_strdup (sexp); + if (!sexp || !*sexp) + priv->search_sexp = NULL; + else + priv->search_sexp = g_strdup (sexp); do_query = TRUE; } |