VirtualBox

Changeset 57588 in vbox


Ignore:
Timestamp:
Aug 31, 2015 1:43:20 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 7127: UIMedium: Replace annoying assertion with silent check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp

    r56180 r57588  
    531531QString UIMedium::normalizedID(const QString &strID)
    532532{
    533     AssertMsgReturn(QUuid(strID).toString().remove('{').remove('}') == strID,
    534                     ("CMedium UUID is not valid: '%s'\n", strID.toAscii().constData()),
    535                     nullID());
     533    /* Handle wrong UUID (null/empty or invalid format): */
     534    if (QUuid(strID).toString().remove('{').remove('}') != strID)
     535        return nullID();
    536536    return strID;
    537537}
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