VirtualBox

Changeset 83710 in vbox for trunk/src


Ignore:
Timestamp:
Apr 15, 2020 5:57:18 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137218
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Fixing crash in add VM workaround on queued machine creation; items are temporary, nodes are persistent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r83709 r83710  
    940940
    941941    /* Select the parent: */
    942     UIChooserItem *pGroup = 0;
     942    UIChooserNode *pGroup = 0;
    943943    if (isSingleGroupSelected())
    944         pGroup = firstSelectedItem();
     944        pGroup = firstSelectedItem()->node();
    945945    else if (!selectedItems().isEmpty())
    946         pGroup = firstSelectedItem()->parentItem();
     946        pGroup = firstSelectedItem()->parentItem()->node();
    947947    QString strGroupName;
    948948    if (pGroup)
     
    983983        // ourselves cause there is no corresponding event yet. So we are calling actual handler to do that.
    984984        foreach (const CCloudMachine &comMachine, pWizard->machines())
    985             sltCloudMachineRegistered(pGroup->parentItem()->name() /* provider name */,
     985            sltCloudMachineRegistered(pGroup->parentNode()->name() /* provider name */,
    986986                                      pGroup->name() /* profile name */,
    987987                                      comMachine.GetId() /* machine ID */,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette