Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 30347)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp	(revision 30348)
@@ -206,5 +206,4 @@
     , m_desktopGeometryType(DesktopGeo_Invalid)
     , m_iLastMouseWheelDelta(0)
-    , m_bIsAutoCaptureDisabled(false)
     , m_bIsKeyboardCaptured(false)
     , m_bIsHostkeyPressed(false)
@@ -1264,7 +1263,7 @@
     {
 #ifdef Q_WS_WIN32
-        if (!m_bIsAutoCaptureDisabled && m_globalSettings.autoCapture() && GetAncestor(winId(), GA_ROOT) == GetForegroundWindow())
+        if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture() && GetAncestor(winId(), GA_ROOT) == GetForegroundWindow())
 #else
-        if (!m_bIsAutoCaptureDisabled && m_globalSettings.autoCapture())
+        if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture())
 #endif
         {
@@ -1273,6 +1272,6 @@
 
         /* Reset the single-time disable capture flag: */
-        if (m_bIsAutoCaptureDisabled)
-            m_bIsAutoCaptureDisabled = false;
+        if (uisession()->isAutoCaptureDisabled())
+            uisession()->setAutoCaptureDisabled(false);
     }
     else
@@ -1446,9 +1445,9 @@
                              * the capture state is to be defined by the
                              * dialog result itself */
-                            m_bIsAutoCaptureDisabled = true;
+                            uisession()->setAutoCaptureDisabled(true);
                             bool autoConfirmed = false;
                             ok = vboxProblem().confirmInputCapture (&autoConfirmed);
                             if (autoConfirmed)
-                                m_bIsAutoCaptureDisabled = false;
+                                uisession()->setAutoCaptureDisabled(false);
                             /* otherwise, the disable flag will be reset in
                              * the next console view's foucs in event (since
@@ -1775,9 +1774,9 @@
                     /* Temporarily disable auto capture that will take place after this dialog is dismissed because
                      * the capture state is to be defined by the dialog result itself: */
-                    m_bIsAutoCaptureDisabled = true;
+                    uisession()->setAutoCaptureDisabled(true);
                     bool autoConfirmed = false;
                     bool ok = vboxProblem().confirmInputCapture(&autoConfirmed);
                     if (autoConfirmed)
-                        m_bIsAutoCaptureDisabled = false;
+                        uisession()->setAutoCaptureDisabled(false);
                     /* Otherwise, the disable flag will be reset in the next console view's foucs in event (since
                      * may happen asynchronously on some platforms, after we return from this code): */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h	(revision 30347)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h	(revision 30348)
@@ -229,5 +229,4 @@
     uint8_t m_pressedKeysCopy[128];
 
-    bool m_bIsAutoCaptureDisabled : 1;
     bool m_bIsKeyboardCaptured : 1;
     bool m_bIsHostkeyPressed : 1;
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp	(revision 30347)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp	(revision 30348)
@@ -559,4 +559,5 @@
     , m_fIsGuestResizeIgnored(false)
     , m_fIsSeamlessModeRequested(false)
+    , m_fIsAutoCaptureDisabled(false)
     /* Guest additions flags: */
     , m_fIsGuestAdditionsActive(false)
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h	(revision 30347)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h	(revision 30348)
@@ -102,4 +102,5 @@
     bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; }
     bool isSeamlessModeRequested() const { return m_fIsSeamlessModeRequested; }
+    bool isAutoCaptureDisabled() const { return m_fIsAutoCaptureDisabled; }
 
     /* Guest additions state getters: */
@@ -130,4 +131,5 @@
     void setGuestResizeIgnored(bool fIsGuestResizeIgnored) { m_fIsGuestResizeIgnored = fIsGuestResizeIgnored; }
     void setSeamlessModeRequested(bool fIsSeamlessModeRequested) { m_fIsSeamlessModeRequested = fIsSeamlessModeRequested; }
+    void setAutoCaptureDisabled(bool fIsAutoCaptureDisabled) { m_fIsAutoCaptureDisabled = fIsAutoCaptureDisabled; }
 
     /* Keyboard setters: */
@@ -234,4 +236,5 @@
     bool m_fIsGuestResizeIgnored : 1;
     bool m_fIsSeamlessModeRequested : 1;
+    bool m_fIsAutoCaptureDisabled : 1;
 
     /* Guest additions flags: */
