summaryrefslogtreecommitdiff
path: root/src/location/labs/qdeclarativenavigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/labs/qdeclarativenavigator.cpp')
-rw-r--r--src/location/labs/qdeclarativenavigator.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/location/labs/qdeclarativenavigator.cpp b/src/location/labs/qdeclarativenavigator.cpp
index 475cb650..bcb74c90 100644
--- a/src/location/labs/qdeclarativenavigator.cpp
+++ b/src/location/labs/qdeclarativenavigator.cpp
@@ -312,10 +312,8 @@ void QDeclarativeNavigator::start()
return;
}
- if (d_ptr->m_active)
- return;
-
- d_ptr->m_active = d_ptr->m_navigationManager->start();
+ if (!d_ptr->m_navigationManager->active())
+ d_ptr->m_active = d_ptr->m_navigationManager->start();
}
void QDeclarativeNavigator::stop()
@@ -325,10 +323,8 @@ void QDeclarativeNavigator::stop()
return;
}
- if (!d_ptr->m_active)
- return;
-
- d_ptr->m_active = d_ptr->m_navigationManager->stop();
+ if (d_ptr->m_navigationManager->active())
+ d_ptr->m_active = d_ptr->m_navigationManager->stop();
}
void QDeclarativeNavigator::pluginReady()