VirtualBox

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


Ignore:
Timestamp:
Apr 13, 2020 4:49:50 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137177
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Remove excessive refresh calls; in certain ICloudMachine being refreshed automatically.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
2 edited

Legend:

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

    r83673 r83682  
    307307        int iPosition = 0;
    308308        foreach (const CCloudMachine &comCloudMachine, machines)
    309         {
    310             /* Create new node: */
    311             UIChooserNodeMachine *pNode = new UIChooserNodeMachine(pParentNode,
    312                                                                    false /* favorite */,
    313                                                                    iPosition++ /* position */,
    314                                                                    comCloudMachine);
    315             /* Request async node update: */
    316             pNode->cache()->toCloud()->updateInfoAsync(false /* delayed? */);
    317         }
     309            new UIChooserNodeMachine(pParentNode,
     310                                     false /* favorite */,
     311                                     iPosition++ /* position */,
     312                                     comCloudMachine);
    318313    }
    319314    else
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r83676 r83682  
    943943        // cause there is no corresponding event yet. Later this to be done in corresponding event handler instead.
    944944        foreach (const CCloudMachine &comMachine, pWizard->machines())
    945         {
    946             // Create new node:
    947             UIChooserNodeMachine *pNode = new UIChooserNodeMachine(pGroup->node(),
    948                                                                    false /* favorite */,
    949                                                                    pGroup->node()->nodes().size() /* position */,
    950                                                                    comMachine);
    951             // Request async node update:
    952             pNode->cache()->toCloud()->updateInfoAsync(false /* delayed? */);
    953         }
     945            new UIChooserNodeMachine(pGroup->node(),
     946                                     false /* favorite */,
     947                                     pGroup->node()->nodes().size() /* position */,
     948                                     comMachine);
    954949        // Remember first selected item definition:
    955950        const QString strDefinition = firstSelectedItem()->definition();
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