svnno****@sourc*****
svnno****@sourc*****
Fri Oct 16 23:51:42 JST 2009
Revision: 3870 http://sourceforge.jp/projects/kazehakase/svn/view?view=rev&revision=3870 Author: mtasaka Date: 2009-10-16 23:51:42 +0900 (Fri, 16 Oct 2009) Log Message: ----------- 2009-10-16 Mamoru Tasaka <mtasa****@ioa*****> * src/actions/kz-actions.c: Fix crash when trying to view source or cert of the page when no page is loaded (Red Hat bug 529334) Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/actions/kz-actions.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2009-10-04 01:39:33 UTC (rev 3869) +++ kazehakase/trunk/ChangeLog 2009-10-16 14:51:42 UTC (rev 3870) @@ -1,3 +1,8 @@ +2009-10-16 Mamoru Tasaka <mtasa****@ioa*****> + + * src/actions/kz-actions.c: Fix crash when trying to view source or cert of the + page when no page is loaded (Red Hat bug 529334) + 2009-10-03 Hiroyuki Ikezoe <poinc****@ikezo*****> * Use g_value_dup_object instead of g_object_ref and g_value_get_object. Modified: kazehakase/trunk/src/actions/kz-actions.c =================================================================== --- kazehakase/trunk/src/actions/kz-actions.c 2009-10-04 01:39:33 UTC (rev 3869) +++ kazehakase/trunk/src/actions/kz-actions.c 2009-10-16 14:51:42 UTC (rev 3870) @@ -531,6 +531,7 @@ { KzWeb *web = KZ_WINDOW_CURRENT_WEB(kz); GtkWidget *newtab; + if (!web) return; newtab = kz_window_open_new_tab(kz, NULL); @@ -541,6 +542,7 @@ act_show_page_certificate (GtkAction *action, KzWindow *kz) { KzWeb *web = KZ_WINDOW_CURRENT_WEB(kz); + if (!web) return; kz_web_show_page_certificate(web); }