Fork of SimpleGUI by
Diff: Dialogs/OKCancelDialog.h
- Revision:
- 16:e9a771ecfdbe
- Parent:
- 15:e69fd74d42e4
--- a/Dialogs/OKCancelDialog.h Sat May 21 18:02:20 2016 +0000 +++ b/Dialogs/OKCancelDialog.h Sun May 22 14:40:29 2016 +0000 @@ -21,12 +21,12 @@ template<typename T> void onOK(T* tptr, void (T::*mptr)(Event e)) { - _onOK.attach(ptr, mptr); + _onOK.attach(tptr, mptr); } template<typename T> void onCancel(T* tptr, void (T::*mptr)(Event e)) { - _onCancel.attach(ptr, mptr); + _onCancel.attach(tptr, mptr); } private: