Changeset 54440 in vbox
- Timestamp:
- Feb 24, 2015 12:21:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r52730 r54440 1205 1205 prepareTreeWidget(type, type == UIMediumType_HardDisk ? 3 : 2); 1206 1206 /* Prepare information-container: */ 1207 prepareInformationContainer(type, type == UIMediumType_HardDisk ? 5 : 2);1207 prepareInformationContainer(type, type == UIMediumType_HardDisk ? 6 : 3); 1208 1208 } 1209 1209 } … … 1614 1614 formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not Attached</i>"), false) : 1615 1615 formatFieldText(pCurrentItem->usage()); 1616 const QString strID = pCurrentItem->id(); 1616 1617 if (infoField(UIMediumType_HardDisk, 0)) 1617 1618 infoField(UIMediumType_HardDisk, 0)->setText(pCurrentItem->hardDiskType()); … … 1624 1625 if (infoField(UIMediumType_HardDisk, 4)) 1625 1626 infoField(UIMediumType_HardDisk, 4)->setText(strUsage); 1627 if (infoField(UIMediumType_HardDisk, 5)) 1628 infoField(UIMediumType_HardDisk, 5)->setText(strID); 1626 1629 } 1627 1630 … … 1650 1653 formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not Attached</i>"), false) : 1651 1654 formatFieldText(pCurrentItem->usage()); 1655 const QString strID = pCurrentItem->id(); 1652 1656 if (infoField(UIMediumType_DVD, 0)) 1653 1657 infoField(UIMediumType_DVD, 0)->setText(formatFieldText(pCurrentItem->location(), true, "end")); 1654 1658 if (infoField(UIMediumType_DVD, 1)) 1655 1659 infoField(UIMediumType_DVD, 1)->setText(strUsage); 1660 if (infoField(UIMediumType_DVD, 2)) 1661 infoField(UIMediumType_DVD, 2)->setText(strID); 1656 1662 } 1657 1663 … … 1680 1686 formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not Attached</i>"), false) : 1681 1687 formatFieldText(pCurrentItem->usage()); 1688 const QString strID = pCurrentItem->id(); 1682 1689 if (infoField(UIMediumType_Floppy, 0)) 1683 1690 infoField(UIMediumType_Floppy, 0)->setText(formatFieldText(pCurrentItem->location(), true, "end")); 1684 1691 if (infoField(UIMediumType_Floppy, 1)) 1685 1692 infoField(UIMediumType_Floppy, 1)->setText(strUsage); 1693 if (infoField(UIMediumType_Floppy, 2)) 1694 infoField(UIMediumType_Floppy, 2)->setText(strID); 1686 1695 } 1687 1696 … … 1793 1802 if (infoLabel(UIMediumType_HardDisk, 4)) 1794 1803 infoLabel(UIMediumType_HardDisk, 4)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:")); 1804 if (infoLabel(UIMediumType_HardDisk, 5)) 1805 infoLabel(UIMediumType_HardDisk, 5)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:")); 1795 1806 1796 1807 /* Translate CD tree-widget: */ … … 1807 1818 if (infoLabel(UIMediumType_DVD, 1)) 1808 1819 infoLabel(UIMediumType_DVD, 1)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:")); 1820 if (infoLabel(UIMediumType_DVD, 2)) 1821 infoLabel(UIMediumType_DVD, 2)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:")); 1809 1822 1810 1823 /* Translate FD tree-widget: */ … … 1821 1834 if (infoLabel(UIMediumType_Floppy, 1)) 1822 1835 infoLabel(UIMediumType_Floppy, 1)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:")); 1836 if (infoLabel(UIMediumType_Floppy, 2)) 1837 infoLabel(UIMediumType_Floppy, 2)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:")); 1823 1838 1824 1839 /* Translate progress-bar: */
Note:
See TracChangeset
for help on using the changeset viewer.