Fix to end the program while displaying the dialog
This commit is contained in:
@@ -301,7 +301,7 @@ class Dialog : DialogBase
|
|||||||
}
|
}
|
||||||
auto startmaincnt = petitcom.maincnt;
|
auto startmaincnt = petitcom.maincnt;
|
||||||
auto oldbutton = petitcom.button;
|
auto oldbutton = petitcom.button;
|
||||||
while (!isPressed)
|
while (!isPressed && petitcom.running && !petitcom.quit)
|
||||||
{
|
{
|
||||||
auto pbutton = petitcom.button;
|
auto pbutton = petitcom.button;
|
||||||
auto button = pbutton ^ oldbutton & pbutton;
|
auto button = pbutton ^ oldbutton & pbutton;
|
||||||
|
|||||||
Reference in New Issue
Block a user