On Tue, 23 Feb 2016 19:44:00 -0800 walt <w41...@gmail.com> wrote: > On Wed, 24 Feb 2016 00:50:23 +0000 (UTC) > Duncan <1i5t5.dun...@cox.net> wrote: > > > walt posted on Tue, 23 Feb 2016 16:02:23 -0800 as excerpted: > > > > > Another, different bug is in the dialog box for editing the certs > > > ("Edit/Edit SSL Certificates"). It crashes pan every time but I > > > don't know why. Can anyone reproduce this? > > > > Thanks for crashing pan for me! =:^) > > > > (J/K. I was expecting it since you said it was crashing for you, > > and I had only the two messages, this one and my sibling reply, > > that I had read and that I knew were going to come back as unread > > after pan restart.) > > > > So definitely reproducible, tho given that the cert files are > > obviously corrupt, that'd be expected. > > > > I've tracked the crash to pan/gui/server-ui.cc:971 : > > void > pan :: render_cert_flag (GtkTreeViewColumn * , > GtkCellRenderer * renderer, > GtkTreeModel * model, > GtkTreeIter * iter, > gpointer ) > { > bool index (false); > gtk_tree_model_get (model, iter, COL_FLAG, &index, -1); > g_object_set (renderer, "pixbuf", _icons[index].pixbuf, NULL); > }
Declaring an index to be a boolean instead of an integer was probably just a brain fart. The patch below fixes the crash, but the dialog box doesn't seem to have any function other than to look pretty :) diff --git a/pan/gui/server-ui.cc b/pan/gui/server-ui.cc index 110c101..0895c61 100644 --- a/pan/gui/server-ui.cc +++ b/pan/gui/server-ui.cc @@ -975,7 +975,7 @@ pan :: render_cert_flag (GtkTreeViewColumn * , GtkTreeIter * iter, gpointer ) { - bool index (false); + int index (0); gtk_tree_model_get (model, iter, COL_FLAG, &index, -1); g_object_set (renderer, "pixbuf", _icons[index].pixbuf, NULL); } _______________________________________________ Pan-users mailing list Pan-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/pan-users