From 4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 10 Mar 2009 11:03:38 -0600 Subject: Allow null link handlers for browser box --- src/gui/browserbox.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index 6614feb9..7bdbcbef 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -225,6 +225,7 @@ struct MouseOverLink void BrowserBox::mousePressed(gcn::MouseEvent &event) { + if (!mLinkHandler) return; LinkIterator i = find_if(mLinks.begin(), mLinks.end(), MouseOverLink(event.getX(), event.getY())); -- cgit v1.2.3-70-g09d2