mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 17:52:43 +03:00
Use API to access content for view source.
This commit is contained in:
parent
b0509c6545
commit
b40830bd3e
@ -1146,9 +1146,9 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
|
||||
}
|
||||
case BROWSER_VIEW_SOURCE:
|
||||
{
|
||||
if (!bw || !bw->current_content)
|
||||
if (!bw || browser_window_has_content(bw) == false)
|
||||
break;
|
||||
nsbeos_gui_view_source(bw->current_content);
|
||||
nsbeos_gui_view_source(browser_window_get_content(bw));
|
||||
break;
|
||||
}
|
||||
case BROWSER_OBJECT:
|
||||
|
Loading…
Reference in New Issue
Block a user