diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/browserbox.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 100281d94..25f821905 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -445,6 +445,11 @@ void BrowserBox::mouseMoved(MouseEvent &event) ? static_cast<int>(i - mLinks.begin()) : -1; } +void BrowserBox::mouseExited(MouseEvent &event) +{ + mSelectedLink = -1; +} + void BrowserBox::draw(Graphics *graphics) { BLOCK_START("BrowserBox::draw") diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 8202fa548..55f0163cd 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -160,6 +160,8 @@ class BrowserBox final : public Widget, void mouseMoved(MouseEvent &event) override final; + void mouseExited(MouseEvent& event) override final; + /** * Draws the browser box. */ |