Skip to content

Commit

Permalink
Minor update saving additionals. Refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 16, 2024
1 parent 32be3d6 commit d6848aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/netedit/GNEApplicationWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3769,6 +3769,8 @@ GNEApplicationWindow::onCmdSaveAdditionals(FXObject* sender, FXSelector sel, voi
// choose file to save
return onCmdSaveAdditionalsAs(sender, sel, ptr);
} else {
// always recompute before saving
myNet->computeNetwork(this);
// Start saving additionals
getApp()->beginWaitCursor();
try {
Expand Down Expand Up @@ -3974,11 +3976,11 @@ GNEApplicationWindow::onCmdSaveDemandElements(FXObject* sender, FXSelector sel,
if (neteditOptions.getString("route-files").empty()) {
return onCmdSaveDemandElementsAs(sender, sel, ptr);
} else {
// always recompute before saving
myNet->computeNetwork(this);
// Start saving demand elements
getApp()->beginWaitCursor();
try {
// compute before saving
myNet->computeNetwork(this);
// save demand elements
myNet->saveDemandElements();
// show info
Expand Down

0 comments on commit d6848aa

Please sign in to comment.