Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp	(revision 30868)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp	(revision 30869)
@@ -914,5 +914,5 @@
     if (!m_fUSBAvailable)
         actions.removeOne(m_actions.value(USBSec));
-    QAction *pReturn = QMenu::exec(actions, m_pDetails->mapToGlobal(pos), 0, this);
+    QAction *pReturn = QMenu::exec(actions, m_pDetails->mapToGlobal(pos), 0);
     if (pReturn)
     {
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxToolBar.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxToolBar.h	(revision 30868)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxToolBar.h	(revision 30869)
@@ -73,7 +73,9 @@
         ::darwinSetShowsToolbarButton (this, aShow);
     }
+#endif /* Q_WS_MAC */
 
     void updateLayout()
     {
+#ifdef Q_WS_MAC
         /* There is a bug in Qt Cocoa which result in showing a "more arrow" when
            the necessary size of the toolbar is increased. Also for some languages
@@ -86,6 +88,6 @@
         layout()->invalidate();
         layout()->activate();
+#endif /* Q_WS_MAC */
     }
-#endif /* Q_WS_MAC */
 
     void setUsesTextLabel (bool aEnable)
