Fix scenario dirty flag being cleared when quit confirmation displayed
(regardless of your response)
This commit is contained in:
@@ -2813,12 +2813,12 @@ bool save_check(std::string which_dlog) {
|
|||||||
|
|
||||||
if(!change_made)
|
if(!change_made)
|
||||||
return true;
|
return true;
|
||||||
change_made = false;
|
|
||||||
choice = cChoiceDlog(which_dlog, {"save","revert","cancel"}).show();
|
choice = cChoiceDlog(which_dlog, {"save","revert","cancel"}).show();
|
||||||
if(choice == "revert")
|
if(choice == "revert")
|
||||||
return true;
|
return true;
|
||||||
else if(choice == "cancel")
|
else if(choice == "cancel")
|
||||||
return false;
|
return false;
|
||||||
|
change_made = false;
|
||||||
town->set_up_lights();
|
town->set_up_lights();
|
||||||
save_scenario();
|
save_scenario();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user