Index: /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp	(revision 74716)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp	(revision 74717)
@@ -349,10 +349,13 @@
 void UIChooserItemGroup::paint(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions, QWidget* /* pWidget = 0 */)
 {
+    /* Acquire rectangle: */
+    const QRect rectangle = pOptions->rect;
+
     /* Paint background: */
-    paintBackground(pPainter, pOptions->rect);
+    paintBackground(pPainter, rectangle);
     /* Paint frame: */
-    paintFrameRectangle(pPainter, pOptions->rect);
+    paintFrame(pPainter, rectangle);
     /* Paint header: */
-    paintHeader(pPainter, pOptions->rect);
+    paintHeader(pPainter, rectangle);
 }
 
@@ -859,7 +862,5 @@
             pItem->updateLayout();
             /* Advance indent for next items: */
-            iPreviousVerticalIndent += iMinimumHeight;
-            if (pItem->type() != UIChooserItemType_Global)
-                iPreviousVerticalIndent += iChildrenSpacing;
+            iPreviousVerticalIndent += (iMinimumHeight + iChildrenSpacing);
         }
     }
@@ -1464,7 +1465,5 @@
             foreach (UIChooserItem *pItem, items())
             {
-                iProposedHeight += pItem->minimumHeightHint();
-                if (pItem->type() != UIChooserItemType_Global)
-                    iProposedHeight += iChildrenSpacing;
+                iProposedHeight += (pItem->minimumHeightHint() + iChildrenSpacing);
             }
             /* Minus last spacing: */
@@ -1706,5 +1705,5 @@
 }
 
-void UIChooserItemGroup::paintFrameRectangle(QPainter *pPainter, const QRect &rect)
+void UIChooserItemGroup::paintFrame(QPainter *pPainter, const QRect &rectangle)
 {
     /* Not for roots: */
@@ -1731,12 +1730,11 @@
 
     /* Calculate top rectangle: */
-    QRect tRect = rect;
+    QRect topRect = rectangle;
     if (!m_fClosed)
-        tRect.setBottom(tRect.top() + iFullHeaderHeight - 1);
+        topRect.setBottom(topRect.top() + iFullHeaderHeight - 1);
 
     /* Draw borders: */
-    pPainter->drawLine(tRect.topLeft(),    tRect.topRight()    + QPoint(1, 0));
-    pPainter->drawLine(tRect.bottomLeft(), tRect.bottomRight() + QPoint(1, 0));
-    pPainter->drawLine(tRect.topLeft(),    tRect.bottomLeft());
+    pPainter->drawLine(topRect.bottomLeft(), topRect.bottomRight() + QPoint(1, 0));
+    pPainter->drawLine(topRect.topLeft(),    topRect.bottomLeft());
 
     /* Restore painter: */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.h	(revision 74716)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.h	(revision 74717)
@@ -311,5 +311,5 @@
         void paintBackground(QPainter *pPainter, const QRect &rect);
         /** Paints frame rectangle using specified @a pPainter and certain @a rect. */
-        void paintFrameRectangle(QPainter *pPainter, const QRect &rect);
+        void paintFrame(QPainter *pPainter, const QRect &rect);
         /** Paints header using specified @a pPainter and certain @a rect. */
         void paintHeader(QPainter *pPainter, const QRect &rect);
