VirtualBox

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


Ignore:
Timestamp:
Apr 21, 2015 4:50:54 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Details pane: Storage element: Check the storage controllers for the API errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp

    r55259 r55360  
    3333# include "UIConverter.h"
    3434# include "UIGraphicsTextPane.h"
     35# include "UIMessageCenter.h"
    3536
    3637/* COM includes: */
     
    523524                    /* Prepare current storage slot: */
    524525                    StorageSlot attachmentSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice());
     526                    AssertMsg(controller.isOk(),
     527                              ("Unable to acquire controller data: %s\n",
     528                               msgCenter().formatRC(controller.lastRC()).toAscii().constData()));
     529                    if (!controller.isOk())
     530                        continue;
    525531                    /* Prepare attachment information: */
    526532                    QString strAttachmentInfo = vboxGlobal().details(attachment.GetMedium(), false, false);
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