Fix to end the program while displaying the dialog

This commit is contained in:
otya128 committed 2016-12-26 23:05:13 +09:00
1 parent c2a3833958
commit a2127e6e6b
1 file changed
+1 -1
+1 -1
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;