VirtualBox

Changeset 83330 in vbox


Ignore:
Timestamp:
Mar 19, 2020 1:26:31 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136526
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Possibility to select global item by definition; Restore first selected item when cloud stuff is loaded and added into machine tree.

File:
1 edited

Legend:

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

    r83268 r83330  
    228228                                      UIChooserItemSearchFlag_ExactName);
    229229    }
     230    /* Its a global-item definition? */
     231    else if (strItemType == "n")
     232    {
     233        /* Search for global-item with required name: */
     234        pItem = root()->searchForItem(strItemDescriptor,
     235                                      UIChooserItemSearchFlag_Global |
     236                                      UIChooserItemSearchFlag_ExactName);
     237    }
    230238    /* Its a machine-item definition? */
    231239    else if (strItemType == "m")
     
    719727    UIChooserAbstractModel::sltHandleCloudAcquireInstancesTaskComplete(pTask);
    720728
     729    /* Remember first selected item definition: */
     730    const QString strDefinition = firstSelectedItem()->definition();
     731
    721732    /* Rebuild tree for main root: */
    722733    buildTreeForMainRoot();
    723734    updateNavigationItemList();
    724735    updateLayout();
     736
     737    /* Restore selection: */
     738    setSelectedItem(strDefinition);
    725739}
    726740#endif /* VBOX_GUI_WITH_CLOUD_VMS */
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