Changeset 2917 in vbox for trunk/src/VBox/Frontends/VirtualBox/ui
- Timestamp:
- May 29, 2007 2:17:19 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 21590
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r2915 r2917 1426 1426 CHostDVDDrive hostDVD = en.GetNext(); 1427 1427 /// @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 } 1429 1437 hostDVDs [id] = hostDVD; 1430 1438 ++ id; … … 1438 1446 CHostDVDDrive drv = dvd.GetHostDrive(); 1439 1447 QString name = drv.GetName(); 1448 QString description = drv.GetDescription(); 1440 1449 if (coll.FindByName (name).isNull()) 1441 1450 { … … 1444 1453 * add it to the end of the list with a special mark 1445 1454 */ 1446 cbHostDVD->insertItem ("* " + name); 1455 if (description.isEmpty()) 1456 { 1457 cbHostDVD->insertItem ("* " + name); 1458 } 1459 else 1460 { 1461 cbHostDVD->insertItem ("* " + description); 1462 } 1447 1463 cbHostDVD->setCurrentItem (cbHostDVD->count() - 1); 1448 1464 } … … 1450 1466 { 1451 1467 /* 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 } 1453 1476 } 1454 1477 rbHostDVD->setChecked (true);
Note:
See TracChangeset
for help on using the changeset viewer.