Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all
Unified · Split
| @@ -884,7 +884,7 @@ void Menu::goTo() { · 883 unmodified lines | ||
| 884 | 884 | |
| 885 | 885 | int dialogReturn = gotoDialog.exec(); |
| 886 | 886 | if (dialogReturn == QDialog::Accepted && !gotoDialog.textValue().isEmpty()) { |
| 887 | − LocationManager* manager = new LocationManager(); | |
| 887 | + LocationManager* manager = &LocationManager::getInstance(); | |
| 888 | 888 | manager->goTo(gotoDialog.textValue()); |
| 889 | 889 | connect(manager, &LocationManager::multipleDestinationsFound, this, &Menu::multipleDestinationsDecision); |
| 890 | 890 | } |