VirtualBox

Changeset 15132 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 8, 2008 8:50:07 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: Disable too optimistic assertion in VBoxGlobal::details (CHardDisk2). Should fix GUI crashes during high hard disk management activitiy (creating/deleting) caused by third parties (discarding snapshots and so on).

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

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

    r15051 r15132  
    18161816        startEnumeratingMedia();
    18171817        if (!findMedium (cmedium, medium))
    1818             AssertFailedReturn (QString::null);
     1818        {
     1819            /// @todo Still not found. Means that we are trying to get details
     1820            /// of a hard disk that was deleted by a third party before we got a
     1821            /// chance to complete the task. Returning null in this case should
     1822            /// be OK, For more information, see *** in VBoxMedium::etails().
     1823            return QString::null;
     1824        }
    18191825    }
    18201826
     
    19721978
    19731979            /// @todo for the explaination of the below isOk() checks, see ***
    1974             /// in #details (const CHardDisk &, bool).
     1980            /// in VBoxMedium::details().
    19751981            if (hda.isOk())
    19761982            {
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r15065 r15132  
    19521952        startEnumeratingMedia();
    19531953        if (!findMedium (cmedium, medium))
    1954             AssertFailedReturn (QString::null);
     1954        {
     1955            /// @todo Still not found. Means that we are trying to get details
     1956            /// of a hard disk that was deleted by a third party before we got a
     1957            /// chance to complete the task. Returning null in this case should
     1958            /// be OK, For more information, see *** in VBoxMedium::etails().
     1959            return QString::null;
     1960        }
    19551961    }
    19561962
     
    21622168
    21632169            /// @todo for the explaination of the below isOk() checks, see ***
    2164             /// in #details (const CHardDisk &, bool).
     2170            /// in VBoxMedium::details().
    21652171            if (hda.isOk())
    21662172            {
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