Ticket #12855: vbox_version.patch

File vbox_version.patch, 1.1 KB (added by mike.bibbings@…, 9 years ago)

Vbox version patch

  • mythtv/libs/libmythtv/recorders/vboxutils.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/vboxutils.cpp b/mythtv/libs/libmythtv/recorders/vboxutils.cpp
    index f1c417e..6c14c16 100644
    a b bool VBox::checkVersion(QString &version)  
    223223    QStringList sList = requiredVersion.split('.');
    224224
    225225    // sanity check this looks like a VBox version string
    226     if (sList.count() != 3 || !requiredVersion.startsWith("VB."))
     226    if (sList.count() != 3 || !requiredVersion.startsWith("V"))
    227227    {
    228228        LOG(VB_GENERAL, LOG_INFO, LOC + QString("Failed to parse required version from %1").arg(requiredVersion));
    229229        version = "UNKNOWN";
    bool VBox::checkVersion(QString &version)  
    246246        sList = version.split('.');
    247247
    248248        // sanity check this looks like a VBox version string
    249         if (sList.count() != 3 || !version.startsWith("VB."))
     249        if (sList.count() != 3 || !version.startsWith("V"))
    250250        {
    251251            LOG(VB_GENERAL, LOG_INFO, LOC + QString("Failed to parse version from %1").arg(version));
    252252            delete xmlDoc;