- Timestamp:
- Jun 4, 2010 9:52:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r29803 r30025 2482 2482 2483 2483 /* 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; 2487 2488 2488 2489 VBoxLicenseViewer licenseDialog (latestFilePath); 2489 2490 bool result = licenseDialog.exec() == QDialog::Accepted; 2490 2491 if (result) 2491 virtualBox().SetExtraData (VBoxDefs::GUI_LicenseKey, latestVersion);2492 virtualBox().SetExtraData (VBoxDefs::GUI_LicenseKey, (strList << latestVersion).join(",")); 2492 2493 return result; 2493 2494 }
Note:
See TracChangeset
for help on using the changeset viewer.