Index: /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp	(revision 67921)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp	(revision 67922)
@@ -209,8 +209,10 @@
             {
                 /* Configure label: */
-                m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
+                m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
+
                 /* Add into layout: */
                 pLayoutOptions->addWidget(m_pLabelType, 0, 0);
             }
+
             /* Create type layout: */
             QHBoxLayout *pLayoutType = new QHBoxLayout;
@@ -219,4 +221,5 @@
                 /* Configure layout: */
                 pLayoutType->setContentsMargins(0, 0, 0, 0);
+
                 /* Create type editor: */
                 m_pComboBoxType = new QComboBox;
@@ -232,4 +235,5 @@
                     pLayoutType->addWidget(m_pComboBoxType);
                 }
+
                 /* Create type error pane: */
                 m_pErrorPaneType = new QLabel;
@@ -240,7 +244,9 @@
                     m_pErrorPaneType->setPixmap(UIIconPool::iconSet(":/status_error_16px.png")
                                                 .pixmap(QSize(iIconMetric, iIconMetric)));
+
                     /* Add into layout: */
                     pLayoutType->addWidget(m_pErrorPaneType);
                 }
+
                 /* Add into layout: */
                 pLayoutOptions->addLayout(pLayoutType, 0, 1);
@@ -252,8 +258,10 @@
             {
                 /* Configure label: */
-                m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
+                m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
+
                 /* Add into layout: */
                 pLayoutOptions->addWidget(m_pLabelLocation, 1, 0);
             }
+
             /* Create location layout: */
             QHBoxLayout *pLayoutLocation = new QHBoxLayout;
@@ -262,4 +270,5 @@
                 /* Configure layout: */
                 pLayoutLocation->setContentsMargins(0, 0, 0, 0);
+
                 /* Create location editor: */
                 m_pSelectorLocation = new UIFilePathSelector;
@@ -277,4 +286,5 @@
                     pLayoutLocation->addWidget(m_pSelectorLocation);
                 }
+
                 /* Create location error pane: */
                 m_pErrorPaneLocation = new QLabel;
@@ -288,4 +298,5 @@
                     pLayoutLocation->addWidget(m_pErrorPaneLocation);
                 }
+
                 /* Add into layout: */
                 pLayoutOptions->addLayout(pLayoutLocation, 1, 1);
@@ -311,5 +322,5 @@
 
                 /* Add into layout: */
-                pLayoutOptions->addWidget(m_pButtonBox, 2, 0, 1, 2);
+                pLayoutOptions->addWidget(m_pButtonBox, 3, 0, 1, 2);
             }
         }
@@ -404,4 +415,6 @@
 {
     /* Clear type combo-box: */
+    m_pLabelType->setEnabled(m_newData.m_fValid);
+    m_pComboBoxType->setEnabled(m_newData.m_fValid);
     m_pComboBoxType->clear();
     if (m_newData.m_fValid)
@@ -436,4 +449,6 @@
 
     /* Load location: */
+    m_pLabelLocation->setEnabled(m_newData.m_fValid);
+    m_pSelectorLocation->setEnabled(m_newData.m_fValid);
     m_pSelectorLocation->setPath(m_newData.m_options.m_strLocation);
     sltLocationPathChanged(m_pSelectorLocation->path());
