summaryrefslogtreecommitdiff
path: root/src/dialogues/ErrorMessage.cpp
diff options
context:
space:
mode:
authorSimon 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)
commitf2f4278932e0752c22d15185ce70198077d0b5fd (patch)
treed53cc28ba9a9020fc851fb3d89803a52a7d06436 /src/dialogues/ErrorMessage.cpp
parent055832270979cdb027c0c30a74cf82c23df13689 (diff)
downloadpowder-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.cpp3
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);
}