1
0

Fix to end the program while displaying the dialog

This commit is contained in:
otya128
2016-12-26 23:05:13 +09:00
parent c2a3833958
commit a2127e6e6b

View File

@@ -301,7 +301,7 @@ class Dialog : DialogBase
}
auto startmaincnt = petitcom.maincnt;
auto oldbutton = petitcom.button;
while (!isPressed)
while (!isPressed && petitcom.running && !petitcom.quit)
{
auto pbutton = petitcom.button;
auto button = pbutton ^ oldbutton & pbutton;