summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 11:03:38 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 11:03:38 -0600
commit4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b (patch)
treeb0587a8ef0a4c5a5c0a9f928fa5c5ee4e84f8285
parentbd1fadd47df391ff54949e385789aa5785033101 (diff)
downloadmana-4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b.tar.gz
mana-4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b.tar.bz2
mana-4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b.tar.xz
mana-4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b.zip
Allow null link handlers for browser box
-rw-r--r--src/gui/browserbox.cpp1
1 files changed, 1 insertions, 0 deletions
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()));