diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-11-02 10:42:39 +0100 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-11-02 10:42:39 +0100 |
commit | f97e5ee9c22cccfb27a3634e814ad9b01edc3195 (patch) | |
tree | 36b0a35977b5214e746b12f1ebc6fbf347bc5aa3 /src/gui/worldselectdialog.cpp | |
parent | 526741f2651990e8a89113f750d2bf274d88f33f (diff) | |
download | mana-f97e5ee9c22cccfb27a3634e814ad9b01edc3195.tar.gz mana-f97e5ee9c22cccfb27a3634e814ad9b01edc3195.tar.bz2 mana-f97e5ee9c22cccfb27a3634e814ad9b01edc3195.tar.xz mana-f97e5ee9c22cccfb27a3634e814ad9b01edc3195.zip |
Adding double-click to server dialog and world select dialog
This resolves http://bugs.manasource.org/view.php?id=259
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/gui/worldselectdialog.cpp')
-rw-r--r-- | src/gui/worldselectdialog.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp index 3219b83d..3207f394 100644 --- a/src/gui/worldselectdialog.cpp +++ b/src/gui/worldselectdialog.cpp @@ -137,3 +137,13 @@ void WorldSelectDialog::keyPressed(gcn::KeyEvent &keyEvent) action(gcn::ActionEvent(NULL, mChooseWorld->getActionEventId())); } } + +void WorldSelectDialog::mouseClicked(gcn::MouseEvent &mouseEvent) +{ + if (mouseEvent.getSource() == mWorldList && + isDoubleClick(mWorldList->getSelected())) + { + action(gcn::ActionEvent(mChooseWorld, + mChooseWorld->getActionEventId())); + } +} |