VirtualBox

Changeset 3138 in vbox


Ignore:
Timestamp:
Jun 18, 2007 10:18:48 AM (17 years ago)
Author:
vboxsync
Message:

Added descriptions to the host DVD and floppy devices in the first run wizard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui.h

    r2981 r3138  
    249249        {
    250250            CHostDVDDrive hostDVD = en.GetNext();
    251             cbHost->insertItem (hostDVD.GetName(), id);
     251            QString name = hostDVD.GetName();
     252            QString description = hostDVD.GetDescription();
     253            QString fullName = description.isEmpty() ?
     254                name :
     255                QString ("%1 (%2)").arg (description, name);
     256            cbHost->insertItem (fullName, id);
    252257            hostDVDs [id] = hostDVD;
    253258            ++ id;
     
    269274        {
    270275            CHostFloppyDrive hostFloppy = en.GetNext();
    271             cbHost->insertItem (hostFloppy.GetName(), id);
     276            QString name = hostFloppy.GetName();
     277            QString description = hostFloppy.GetDescription();
     278            QString fullName = description.isEmpty() ?
     279                name :
     280                QString ("%1 (%2)").arg (description, name);
     281            cbHost->insertItem (fullName, id);
    272282            hostFloppys [id] = hostFloppy;
    273283            ++ id;
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