Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.cpp	(revision 82429)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.cpp	(revision 82430)
@@ -30,4 +30,5 @@
     : QIWithRetranslateUI<QWidget>(pParent)
     , m_fWithLabel(fWithLabel)
+    , m_enmValue(KGraphicsControllerType_Max)
     , m_pLabel(0)
     , m_pCombo(0)
@@ -40,5 +41,9 @@
     if (m_pCombo)
     {
-        int iIndex = m_pCombo->findData(QVariant::fromValue(enmValue));
+        /* Update cached value: */
+        m_enmValue = enmValue;
+
+        /* Look for proper index to choose: */
+        int iIndex = m_pCombo->findData(QVariant::fromValue(m_enmValue));
         if (iIndex != -1)
             m_pCombo->setCurrentIndex(iIndex);
@@ -48,5 +53,5 @@
 KGraphicsControllerType UIGraphicsControllerEditor::value() const
 {
-    return m_pCombo ? m_pCombo->itemData(m_pCombo->currentIndex()).value<KGraphicsControllerType>() : KGraphicsControllerType_Null;
+    return m_pCombo ? m_pCombo->currentData().value<KGraphicsControllerType>() : m_enmValue;
 }
 
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.h	(revision 82429)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGraphicsControllerEditor.h	(revision 82430)
@@ -77,4 +77,7 @@
     bool  m_fWithLabel;
 
+    /** Holds the value to be selected. */
+    KGraphicsControllerType  m_enmValue;
+
     /** Holds the label instance. */
     QLabel     *m_pLabel;
