diff options
author | raveit65 <[email protected]> | 2016-05-29 18:39:00 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-12 17:12:10 +0300 |
commit | 0fcdfec6179aafb81c667d08c5fcd27e574b714f (patch) | |
tree | 3e2aa006604b4557d6cae936acc71333e794b710 /mate-dictionary | |
parent | 9c2a3ab5843360c66b49ef9cd95834111ce6dfd9 (diff) | |
download | mate-utils-0fcdfec6179aafb81c667d08c5fcd27e574b714f.tar.bz2 mate-utils-0fcdfec6179aafb81c667d08c5fcd27e574b714f.tar.xz |
mdict: Remove assertion in sidebar code
Allow the sidebar page to be unset.
taken from:
https://git.gnome.org/browse/gnome-dictionary/commit/?id=cff1cc6
Diffstat (limited to 'mate-dictionary')
-rw-r--r-- | mate-dictionary/src/gdict-sidebar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c index 9709a78d..fb0e4862 100644 --- a/mate-dictionary/src/gdict-sidebar.c +++ b/mate-dictionary/src/gdict-sidebar.c @@ -554,7 +554,8 @@ gdict_sidebar_current_page (GdictSidebar *sidebar) index = gtk_notebook_get_current_page (GTK_NOTEBOOK (priv->notebook)); page = g_slist_nth_data (priv->pages, index); - g_assert (page != NULL); + if (page == NULL) + return NULL; return page->id; } |