GUI2/Window: fixed behavior regression from 2416f10ddd
The on-OK-only exit hook wrapper was always returning true.
This commit is contained in:
parent
ffa581d88b
commit
d957326828
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ public:
|
|||
|
||||
void set_exit_hook_ok_only(std::function<bool(window&)> func)
|
||||
{
|
||||
exit_hook_ = [func](window& w)->bool { return (w.get_retval() == OK && func(w)) || true; };
|
||||
exit_hook_ = [func](window& w)->bool { return w.get_retval() != OK || func(w); };
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue