diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2009-12-14 07:19:44 +0100 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2009-12-14 23:12:26 +1300 |
commit | 43b21002699c9c9707c742c3b30454487f4329a7 (patch) | |
tree | 6b59aa9a267b05f2e125c8ae403c67d1d59bdeab | |
parent | 31d37104c775b691c950807a6add074eb73cdd14 (diff) | |
download | mana-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.cpp | 2 |
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())); } } |