diff options
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 5 |
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; } |