summaryrefslogtreecommitdiff
path: root/beos/beos_scaffolding.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-03 03:42:10 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-03 03:42:10 +0000
commit54ccbc94edd7cae429129dea5467557aa4039f4e (patch)
tree1fa1f8e31d20a55a5f9126a6be80bbf4eca17c9c /beos/beos_scaffolding.cpp
parent209c72b0113b5235a49af7a16e2aecb8e9f9c8ef (diff)
downloadnetsurf-54ccbc94edd7cae429129dea5467557aa4039f4e.tar.gz
netsurf-54ccbc94edd7cae429129dea5467557aa4039f4e.tar.bz2
Add support for editting page source.
svn path=/trunk/netsurf/; revision=5479
Diffstat (limited to 'beos/beos_scaffolding.cpp')
-rw-r--r--beos/beos_scaffolding.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/beos/beos_scaffolding.cpp b/beos/beos_scaffolding.cpp
index dadab0c33..a3eea6109 100644
--- a/beos/beos_scaffolding.cpp
+++ b/beos/beos_scaffolding.cpp
@@ -538,7 +538,12 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
break;
}
case BROWSER_VIEW_SOURCE:
+ {
+ if (!bw || !bw->current_content)
+ break;
+ nsbeos_gui_view_source(bw->current_content);
break;
+ }
case BROWSER_OBJECT:
break;
case BROWSER_OBJECT_INFO: