diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-12-18 13:03:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-12-18 13:03:07 +0000 |
commit | 71983d527ea86da0e8c8e2195715b9ca55b0de13 (patch) | |
tree | 0b94f9b6ce00f8fb905b54acda1c2032a73b9527 /desktop/tree.c | |
parent | 54f01c7d7bb8a0b505ac6fabef252d332152f29d (diff) | |
download | netsurf-71983d527ea86da0e8c8e2195715b9ca55b0de13.tar.gz netsurf-71983d527ea86da0e8c8e2195715b9ca55b0de13.tar.bz2 |
Tree compat layer: Fix assertion for multiple SSL cert windows.
Use corewindow API rather than this compat layer to avoid the assertion.
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index 4972777ba..6acf179da 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -129,10 +129,6 @@ static bool treeview_test_init(struct tree *tree) switch (tree->flags) { case TREE_COOKIES: - assert(ssl_current_session == NULL && - "Call sslcert_viewer_init directly, " - "this compat. layer can't cope with simultanious " - "sslcert viewers"); err = cookie_manager_init(&cw_t, (struct core_window *)tree); if (err != NSERROR_OK) guit->misc->warning("Couldn't init new cookie manager.", 0); @@ -149,6 +145,10 @@ static bool treeview_test_init(struct tree *tree) guit->misc->warning("Couldn't init new hotlist.", 0); break; case TREE_SSLCERT: + assert(ssl_current_session == NULL && + "Call sslcert_viewer_init directly, " + "this compat. layer can't cope with simultanious " + "sslcert viewers"); err = sslcert_viewer_init(&cw_t, (struct core_window *)tree, ssl_current_session); if (err != NSERROR_OK) |