Description: Disable "Check for Updates" action.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/272212
Author: Daniel Hahler <ubuntu@thequod.de>, Felix Geyer <fgeyer@debian.org>, Gianfranco Costamagna <locutusofborg@debian.org>

Index: virtualbox/doc/manual/en_US/dita/topics/preferences.dita
===================================================================
--- virtualbox.orig/doc/manual/en_US/dita/topics/preferences.dita
+++ virtualbox/doc/manual/en_US/dita/topics/preferences.dita
@@ -21,9 +21,9 @@
       <li>
         <p>On the <uicontrol>Input</uicontrol> tab, set keyboard shortcuts, both in <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/> and in individual VMs. For example you might want to specify a different <b outputclass="bold">Host key</b>. This is the key that toggles whether the cursor is in the focus of the VM or the Host OS windows, see <xref href="keyb_mouse_normal.dita#keyb_mouse_normal"/>. The Host key is also used to trigger certain VM actions, see <xref href="specialcharacters.dita#specialcharacters"/>.</p>
       </li>
-      <li>
+      <!--<li>
         <p>On the <uicontrol>Update</uicontrol> tab, select the type of software updates you want to install, and how frequently to check for updates.</p>
-      </li>
+      </li>-->
       <li>
         <p>On the <uicontrol>Language</uicontrol> tab, choose the language used for menus, labels, and text in <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/>.</p>
       </li>
Index: virtualbox/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
===================================================================
--- virtualbox.orig/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
+++ virtualbox/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
@@ -2412,7 +2412,7 @@
 bool UIExtraDataManager::applicationUpdateEnabled()
 {
     /* 'True' unless 'restriction' feature allowed: */
-    return !isFeatureAllowed(GUI_PreventApplicationUpdate);
+    return false;
 }
 
 QString UIExtraDataManager::applicationUpdateData()
Index: virtualbox/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp
===================================================================
--- virtualbox.orig/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp
+++ virtualbox/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp
@@ -50,10 +50,10 @@
 #ifdef VBOX_WS_WIN
 # include "UIGlobalSettingsInterface.h"
 #endif
-#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
-# include "UIGlobalSettingsProxy.h"
-# include "UIGlobalSettingsUpdate.h"
-#endif
+//#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
+//# include "UIGlobalSettingsProxy.h"
+//# include "UIGlobalSettingsUpdate.h"
+//#endif
 
 /* GUI includes: Machine Settings: */
 #include "UIMachineSettingsAudio.h"
@@ -99,7 +99,7 @@
 
 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     /* Update page: */
-    m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update"));
+    //m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update"));
 #endif
 
     /* Language page: */
@@ -110,7 +110,7 @@
 
 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     /* Proxy page: */
-    m_pSelector->setItemText(GlobalSettingsPageType_Proxy, tr("Proxy"));
+    //m_pSelector->setItemText(GlobalSettingsPageType_Proxy, tr("Proxy"));
 #endif
 
 #ifdef VBOX_WS_WIN
@@ -218,17 +218,6 @@ void UIAdvancedSettingsDialogGlobal::prepare()
                     addPageHelpKeyword(iPageIndex, "tk_preferences" /* help keyword */);
                     break;
                 }
-#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
-                /* Update page: */
-                case GlobalSettingsPageType_Update:
-                {
-                    pSettingsPage = new UIGlobalSettingsUpdate;
-                    addItem(":/refresh_32px.png", ":/refresh_24px.png", ":/refresh_16px.png",
-                            iPageIndex, "#update", pSettingsPage);
-                    addPageHelpKeyword(iPageIndex, "tk_preferences" /* help keyword */);
-                    break;
-                }
-#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
                 /* Language page: */
                 case GlobalSettingsPageType_Language:
                 {
@@ -247,17 +236,6 @@ void UIAdvancedSettingsDialogGlobal::prepare()
                     addPageHelpKeyword(iPageIndex, "tk_preferences" /* help keyword */);
                     break;
                 }
-#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
-                /* Proxy page: */
-                case GlobalSettingsPageType_Proxy:
-                {
-                    pSettingsPage = new UIGlobalSettingsProxy;
-                    addItem(":/proxy_32px.png", ":/proxy_24px.png", ":/proxy_16px.png",
-                            iPageIndex, "#proxy", pSettingsPage);
-                    addPageHelpKeyword(iPageIndex, "tk_preferences" /* help keyword */);
-                    break;
-                }
-#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
 #ifdef VBOX_WS_WIN
                 /* Interface page: */
                 case GlobalSettingsPageType_Interface:
