Fix history storing in wxWebViewWebKit with custom schemes.
When the history has just been cleared there is no existing item so we should add the new history item even in this case. Fixes #15446. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,7 +46,8 @@ wxgtk_webview_webkit_load_status(GtkWidget* widget,
|
|||||||
//We have to check if we are actually storing history
|
//We have to check if we are actually storing history
|
||||||
//If the item isn't added we add it ourselves, it isn't added otherwise
|
//If the item isn't added we add it ourselves, it isn't added otherwise
|
||||||
//with a custom scheme.
|
//with a custom scheme.
|
||||||
if(WEBKIT_IS_WEB_HISTORY_ITEM(item) && webkit_web_history_item_get_uri(item) != url)
|
if(!item || (WEBKIT_IS_WEB_HISTORY_ITEM(item) &&
|
||||||
|
webkit_web_history_item_get_uri(item) != url))
|
||||||
{
|
{
|
||||||
WebKitWebHistoryItem*
|
WebKitWebHistoryItem*
|
||||||
newitem = webkit_web_history_item_new_with_data
|
newitem = webkit_web_history_item_new_with_data
|
||||||
|
Reference in New Issue
Block a user