summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 67dbbe632..d5eb6b89a 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -963,8 +963,9 @@ void BrowserBox::moveSelectionDown()
void BrowserBox::selectSelection()
{
- if (mSelectedLink < 0 || mSelectedLink >= static_cast<signed int>(
- mLinks.size()))
+ if (!mLinkHandler ||
+ mSelectedLink < 0 ||
+ mSelectedLink >= static_cast<signed int>(mLinks.size()))
{
return;
}