diff options
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r-- | src/gui/widgets/playerbox.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp index 1718ef513..e6f5965d1 100644 --- a/src/gui/widgets/playerbox.cpp +++ b/src/gui/widgets/playerbox.cpp @@ -133,3 +133,13 @@ void PlayerBox::drawFrame(gcn::Graphics *graphics) } BLOCK_END("PlayerBox::drawFrame") } + +void PlayerBox::mouseReleased(gcn::MouseEvent& event) +{ + ScrollArea::mouseReleased(event); + if (event.getButton() == gcn::MouseEvent::LEFT) + { + if (!mActionEventId.empty()) + distributeActionEvent(); + } +} |