mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-22 18:32:16 +03:00
stop treeview redraw failing because of bad global state.
This commit is contained in:
parent
698b7c61f0
commit
25c4ea7a6e
@ -212,7 +212,9 @@ static bool treeview_test_redraw(struct tree *tree, int x, int y,
|
||||
|
||||
switch (tree->flags) {
|
||||
case TREE_SSLCERT:
|
||||
sslcert_viewer_redraw(ssl_current_session, x, y, &clip, ctx);
|
||||
if (ssl_current_session != NULL) {
|
||||
sslcert_viewer_redraw(ssl_current_session, x, y, &clip, ctx);
|
||||
}
|
||||
return true;
|
||||
case TREE_COOKIES:
|
||||
cookie_manager_redraw(x, y, &clip, ctx);
|
||||
|
@ -33,6 +33,10 @@ struct sslcert_session_data;
|
||||
struct tree;
|
||||
struct redraw_context;
|
||||
|
||||
/** Current ssl session data for treeview
|
||||
*
|
||||
* @fixme global certificate treeview state must go away, this is just wrong.
|
||||
*/
|
||||
extern struct sslcert_session_data *ssl_current_session;
|
||||
extern const char *tree_hotlist_path;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user