From ff3ff6be3d24eff4513b795e48ced43521680280 Mon Sep 17 00:00:00 2001 From: kohait Date: Tue, 10 Mar 2020 19:07:17 +0000 Subject: [PATCH] bazaar: PopUpC git-svn-id: svn://ultimatepp.org/upp/trunk@14149 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/PopUpC/PopUpC.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bazaar/PopUpC/PopUpC.cpp b/bazaar/PopUpC/PopUpC.cpp index fa19ff531..bd242f1cf 100644 --- a/bazaar/PopUpC/PopUpC.cpp +++ b/bazaar/PopUpC/PopUpC.cpp @@ -19,8 +19,8 @@ void PopUpC::Break(int ID) bool PopUpC::AcceptBreak(int ID) { if(Accept()) { - WhenAccept(); Break(ID); + WhenAccept(); return true; } return false; @@ -29,8 +29,8 @@ bool PopUpC::AcceptBreak(int ID) void PopUpC::RejectBreak(int ID) { Reject(); - WhenReject(); Break(ID); + WhenReject(); } void PopUpC::PopUp(Ctrl* owner) @@ -46,6 +46,9 @@ void PopUpC::PopUp(Ctrl* owner) y = r.top - sz.cy; Rect rt = RectC(x, y, sz.cx, sz.cy); + + Backup(); + if(GUI_PopUpEffect()) { sPaintRedirectCtrl pb; pb.ctrl = this;