diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-04 15:39:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-04 15:39:24 (GMT) |
| commit | f2f4278932e0752c22d15185ce70198077d0b5fd (patch) | |
| tree | d53cc28ba9a9020fc851fb3d89803a52a7d06436 /src/dialogues/ErrorMessage.cpp | |
| parent | 055832270979cdb027c0c30a74cf82c23df13689 (diff) | |
| download | powder-f2f4278932e0752c22d15185ce70198077d0b5fd.zip powder-f2f4278932e0752c22d15185ce70198077d0b5fd.tar.gz | |
Better exiting from windows (Escape and Enter) and 'q' for exit, fixes #35 and #60
Diffstat (limited to 'src/dialogues/ErrorMessage.cpp')
| -rw-r--r-- | src/dialogues/ErrorMessage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogues/ErrorMessage.cpp b/src/dialogues/ErrorMessage.cpp index ccd4a8e..9bff8fb 100644 --- a/src/dialogues/ErrorMessage.cpp +++ b/src/dialogues/ErrorMessage.cpp @@ -42,6 +42,9 @@ ErrorMessage::ErrorMessage(std::string title, std::string message): okayButton->Appearance.BorderInactive = ui::Colour(200, 200, 200); okayButton->SetActionCallback(new DismissAction(this)); AddComponent(okayButton); + SetOkayButton(okayButton); + SetCancelButton(okayButton); + ui::Engine::Ref().ShowWindow(this); } |
