diff options
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r-- | qt/mainwindow.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index 02324bd151..8eb1b23eff 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -189,7 +189,7 @@ bool MainWindow::winEvent(MSG * msg, long * result) void MainWindow::LocationStateModeChanged(location::EMyPositionMode mode) { - if (mode == location::MODE_PENDING_POSITION) + if (mode == location::PendingPosition) { m_locationService->Start(); m_pMyPositionAction->setIcon(QIcon(":/navig64/location-search.png")); @@ -197,9 +197,6 @@ void MainWindow::LocationStateModeChanged(location::EMyPositionMode mode) return; } - if (mode == location::MODE_UNKNOWN_POSITION) - m_locationService->Stop(); - m_pMyPositionAction->setIcon(QIcon(":/navig64/location.png")); m_pMyPositionAction->setToolTip(tr("My Position")); } @@ -509,7 +506,7 @@ void MainWindow::OnUploadEditsMenuItem() void MainWindow::OnBeforeEngineCreation() { - m_pDrawWidget->GetFramework().SetMyPositionModeListener([this](location::EMyPositionMode mode) + m_pDrawWidget->GetFramework().SetMyPositionModeListener([this](location::EMyPositionMode mode, bool routingActive) { LocationStateModeChanged(mode); }); |