summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-12-14 07:19:44 +0100
committerFreeyorp <Freeyorp101@hotmail.com>2009-12-14 23:12:26 +1300
commit43b21002699c9c9707c742c3b30454487f4329a7 (patch)
tree6b59aa9a267b05f2e125c8ae403c67d1d59bdeab
parent31d37104c775b691c950807a6add074eb73cdd14 (diff)
downloadmana-client-43b21002699c9c9707c742c3b30454487f4329a7.tar.gz
mana-client-43b21002699c9c9707c742c3b30454487f4329a7.tar.bz2
mana-client-43b21002699c9c9707c742c3b30454487f4329a7.tar.xz
mana-client-43b21002699c9c9707c742c3b30454487f4329a7.zip
Fixing a crash when pressing escape in charselectdialog
The old code gave an exception fault, because when escape was pressed then event.getSource() was a null pointer. This resolves http://mantis.themanaworld.org/view.php?id=685
-rw-r--r--src/gui/charselectdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index 4f3619ae..8dc292ab 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -226,7 +226,7 @@ void CharSelectDialog::keyPressed(gcn::KeyEvent &keyEvent)
if (key.getValue() == Key::ESCAPE)
{
- action(gcn::ActionEvent(NULL, mSwitchLoginButton->getActionEventId()));
+ action(gcn::ActionEvent(mSwitchLoginButton, mSwitchLoginButton->getActionEventId()));
}
}