commit 5ef93f0a3a94f8e6fb90ef30d73d17301854413c parent 2b95b803865f69f72ccb1a7c1795e66140cb7d8e Author: cfillion <cfillion@users.noreply.github.com> Date: Sat, 18 Jun 2016 20:16:37 -0400 dialog: return button code in default onCommand implementation Diffstat:
M | src/dialog.cpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dialog.cpp b/src/dialog.cpp @@ -305,7 +305,7 @@ void Dialog::onCommand(const int id, int) switch(id) { case IDOK: case IDCANCEL: - close(); + close(id); } }