VirtualBox

Changeset 30025 in vbox for trunk


Ignore:
Timestamp:
Jun 4, 2010 9:52:33 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: allow more than one license agreements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r29803 r30025  
    24822482
    24832483    /* check for the agreed license version */
    2484     QString licenseAgreed = virtualBox().GetExtraData (VBoxDefs::GUI_LicenseKey);
    2485     if (licenseAgreed == latestVersion)
    2486         return true;
     2484    QStringList strList =  virtualBox().GetExtraData (VBoxDefs::GUI_LicenseKey).split(",");
     2485    for (int i=0; i < strList.size(); ++i)
     2486        if (strList.at(i) == latestVersion)
     2487            return true;
    24872488
    24882489    VBoxLicenseViewer licenseDialog (latestFilePath);
    24892490    bool result = licenseDialog.exec() == QDialog::Accepted;
    24902491    if (result)
    2491         virtualBox().SetExtraData (VBoxDefs::GUI_LicenseKey, latestVersion);
     2492        virtualBox().SetExtraData (VBoxDefs::GUI_LicenseKey, (strList << latestVersion).join(","));
    24922493    return result;
    24932494}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette