VirtualBox

Ignore:
Timestamp:
May 29, 2007 2:17:19 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21590
Message:

Updated the host DVD code on Linux to use hal for device detection

File:
1 edited

Legend:

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

    r2915 r2917  
    14261426            CHostDVDDrive hostDVD = en.GetNext();
    14271427            /// @todo (r=dmik) set icon?
    1428             cbHostDVD->insertItem (hostDVD.GetName(), id);
     1428            QString description = hostDVD.GetDescription();
     1429            if (description.isEmpty())
     1430            {
     1431                cbHostDVD->insertItem (hostDVD.GetName(), id);
     1432            }
     1433            else
     1434            {
     1435                cbHostDVD->insertItem (description, id);
     1436            }
    14291437            hostDVDs [id] = hostDVD;
    14301438            ++ id;
     
    14381446                CHostDVDDrive drv = dvd.GetHostDrive();
    14391447                QString name = drv.GetName();
     1448                QString description = drv.GetDescription();
    14401449                if (coll.FindByName (name).isNull())
    14411450                {
     
    14441453                     *  add it to the end of the list with a special mark
    14451454                     */
    1446                     cbHostDVD->insertItem ("* " + name);
     1455                    if (description.isEmpty())
     1456                    {
     1457                        cbHostDVD->insertItem ("* " + name);
     1458                    }
     1459                    else
     1460                    {
     1461                        cbHostDVD->insertItem ("* " + description);
     1462                    }
    14471463                    cbHostDVD->setCurrentItem (cbHostDVD->count() - 1);
    14481464                }
     
    14501466                {
    14511467                    /* this will select the correct item from the prepared list */
    1452                     cbHostDVD->setCurrentText (name);
     1468                    if (description.isEmpty())
     1469                    {
     1470                        cbHostDVD->setCurrentText (name);
     1471                    }
     1472                    else
     1473                    {
     1474                        cbHostDVD->setCurrentText (description);
     1475                    }
    14531476                }
    14541477                rbHostDVD->setChecked (true);
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