mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Move connect call for multiple destinations to constructor
This commit is contained in:
parent
af3b2a9d0f
commit
978b7521db
1 changed files with 3 additions and 3 deletions
|
@ -165,6 +165,8 @@ Menu::Menu() :
|
|||
Qt::Key_At,
|
||||
this,
|
||||
SLOT(goTo()));
|
||||
connect(&LocationManager::getInstance(), &LocationManager::multipleDestinationsFound,
|
||||
this, &Menu::multipleDestinationsDecision);
|
||||
|
||||
addDisabledActionAndSeparator(fileMenu, "Upload Avatar Model");
|
||||
addActionToQMenuAndActionHash(fileMenu, MenuOption::UploadHead, 0, Application::getInstance(), SLOT(uploadHead()));
|
||||
|
@ -1002,9 +1004,7 @@ bool Menu::goToDestination(QString destination) {
|
|||
}
|
||||
|
||||
void Menu::goTo(QString destination) {
|
||||
LocationManager* manager = &LocationManager::getInstance();
|
||||
manager->goTo(destination);
|
||||
connect(manager, &LocationManager::multipleDestinationsFound, getInstance(), &Menu::multipleDestinationsDecision);
|
||||
LocationManager::getInstance().goTo(destination);
|
||||
}
|
||||
|
||||
void Menu::goTo() {
|
||||
|
|
Loading…
Reference in a new issue