Clean unneeded refs to metricDB

.. starting to sunset the code now. Need to sort the sqlModel
   for the ridecache and then it can be retired completely.
This commit is contained in:
Mark Liversedge
2014-12-22 22:39:36 +00:00
parent c1307da442
commit 1bb4c3264b
2 changed files with 2 additions and 3 deletions

View File

@@ -658,7 +658,7 @@ LTMWindow::filterChanged()
// ignore in compare mode
if (isCompare()) return;
if (amVisible() == false || context->athlete->metricDB == NULL) return;
if (amVisible() == false) return;
if (useCustom) {

View File

@@ -1070,8 +1070,7 @@ RideMetadata::readXML(QString filename, QList<KeywordDefinition>&keywordDefiniti
// now auto append special fields, in case
// the user wiped them or we have introduced
// them in this release. This is to ensure
// they get written to metricDB
// them in this release.
bool hasCalendarText = false;
bool hasData = false;