Ticket #5314: mythtv-5314-use_GetSetting_in_CompareTVDatabaseSchemaVersion.patch

File mythtv-5314-use_GetSetting_in_CompareTVDatabaseSchemaVersion.patch, 481 bytes (added by sphery <mtdean@…>, 12 years ago)
  • libs/libmythtv/dbcheck.cpp

     
    496496        return -1;
    497497
    498498    bool ok;
    499     int databaseVersion = gContext->GetNumSetting("DBSchemaVer");
     499    int databaseVersion = gContext->GetSetting("DBSchemaVer").toInt();
    500500    int expectedVersion = currentDatabaseVersion.toInt(&ok);
    501501
    502502    unlockSchema(query);