From e231c8486b20da47dd4c1ea565ec7e8ea73eb36a Mon Sep 17 00:00:00 2001 From: stojce Date: Thu, 13 Mar 2014 07:47:33 +0100 Subject: [PATCH] Using singleton for location manager --- interface/interface_en.ts | 8 ++++---- interface/src/Menu.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/interface_en.ts b/interface/interface_en.ts index e658d15ba7..46d050787a 100644 --- a/interface/interface_en.ts +++ b/interface/interface_en.ts @@ -4,22 +4,22 @@ Application - + Export Voxels - + Sparse Voxel Octree Files (*.svo) - + Open Script - + JavaScript Files (*.js) diff --git a/interface/src/Menu.cpp b/interface/src/Menu.cpp index 69cbd4a963..eb4386b84c 100644 --- a/interface/src/Menu.cpp +++ b/interface/src/Menu.cpp @@ -884,7 +884,7 @@ void Menu::goTo() { int dialogReturn = gotoDialog.exec(); if (dialogReturn == QDialog::Accepted && !gotoDialog.textValue().isEmpty()) { - LocationManager* manager = new LocationManager(); + LocationManager* manager = &LocationManager::getInstance(); manager->goTo(gotoDialog.textValue()); connect(manager, &LocationManager::multipleDestinationsFound, this, &Menu::multipleDestinationsDecision); }