Changeset 70850 in vbox
- Timestamp:
- Feb 1, 2018 3:54:31 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120667
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r70824 r70850 366 366 367 367 /* Get VirtualBox version: */ 368 QString strVBoxVersion(vboxGlobal().vboxVersionStringNormalized()); 369 QByteArray abVBoxVersion = strVBoxVersion.toUtf8(); 370 UIVersion vboxVersion(strVBoxVersion); 371 368 UIVersion vboxVersion(vboxGlobal().vboxVersionStringNormalized()); 372 369 /* Get extension pack version: */ 373 370 QString strExtPackVersion(extPack.GetVersion()); 374 371 QByteArray abExtPackVersion = strExtPackVersion.toUtf8(); 375 372 376 /* Skip the check in unstable VBox version and if the extension pack 377 is equal to or newer than VBox. 378 379 Note! Use RTStrVersionCompare for the comparison here as it takes 380 the beta/alpha/preview/whatever tags into consideration when 381 comparing versions. */ 382 if ( vboxVersion.z() % 2 != 0 383 || RTStrVersionCompare(abExtPackVersion.constData(), abVBoxVersion.constData()) >= 0) 373 /* If this version being developed: */ 374 if (vboxVersion.z() % 2 == 1) 375 { 376 /* If this version being developed on release branch (we use released one): */ 377 if (vboxVersion.z() < 97) 378 vboxVersion.setZ(vboxVersion.z() - 1); 379 /* If this version being developed on trunk (we skip check at all): */ 380 else 381 { 382 emit sigStepComplete(); 383 return; 384 } 385 } 386 387 /* Get updated VirtualBox version: */ 388 const QString strVBoxVersion = vboxVersion.toString(); 389 390 /* Skip the check if the extension pack is equal to or newer than VBox. 391 * Note! Use RTStrVersionCompare for the comparison here as it takes the 392 * beta/alpha/preview/whatever tags into consideration when comparing versions. */ 393 if (RTStrVersionCompare(abExtPackVersion.constData(), strVBoxVersion.toUtf8().constData()) >= 0) 384 394 { 385 395 emit sigStepComplete();
Note:
See TracChangeset
for help on using the changeset viewer.