diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-09-10 18:38:45 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:26:32 +0300 |
commit | 9e1acfd5935a5bf84f6a42e87e4d7257f34252a7 (patch) | |
tree | e69b6c851b0a80fb249a706d8f82f3a9222801cb /qt/mainwindow.cpp | |
parent | 4b352cba5f7effd8ed9fe7620c7c4ab87a83b7c8 (diff) |
review fixes
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r-- | qt/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index 5a5d693e0c..4ede1f348d 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -50,7 +50,10 @@ MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this) { m_pDrawWidget = new DrawWidget(this); shared_ptr<location::State> locState = m_pDrawWidget->GetFramework().GetLocationState(); - locState->AddStateModeListener([this](location::State::Mode mode) { LocationStateModeChanged(mode);}); + locState->AddStateModeListener([this](location::State::Mode mode) + { + LocationStateModeChanged(mode); + }); CreateNavigationBar(); CreateSearchBarAndPanel(); @@ -179,7 +182,7 @@ void MainWindow::LocationStateModeChanged(location::State::Mode mode) return; } - if (mode == location::State::UnknowPosition) + if (mode == location::State::UnknownPosition) m_locationService->Stop(); m_pMyPositionAction->setIcon(QIcon(":/navig64/location.png")); |