File vbox-disable-updates.diff of Package virtualbox

Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
===================================================================
--- VirtualBox-5.2.0.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
+++ VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
@@ -110,8 +110,8 @@ void UIGlobalSettingsUpdate::getFromCach
     /* Get old update data from the cache: */
     const UIDataSettingsGlobalUpdate &oldUpdateData = m_pCache->base();
 
-    /* Load old update data from the cache: */
-    m_pCheckBoxUpdate->setChecked(oldUpdateData.m_fCheckEnabled);
+    /* Disable old update data from the cache: */
+    m_pCheckBoxUpdate->setChecked(false);
     if (m_pCheckBoxUpdate->isChecked())
     {
         m_pComboBoxUpdatePeriod->setCurrentIndex(oldUpdateData.m_periodIndex);
Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
===================================================================
--- VirtualBox-5.2.0.orig/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
+++ VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
@@ -103,16 +103,6 @@ UISettingsDialogGlobal::UISettingsDialog
                             iPageIndex, "#input", pSettingsPage);
                     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);
-                    break;
-                }
-#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
                 /* Language page: */
                 case GlobalSettingsPageType_Language:
                 {
@@ -248,8 +238,6 @@ void UISettingsDialogGlobal::retranslate
     m_pSelector->setItemText(GlobalSettingsPageType_Input, tr("Input"));
 
 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
-    /* Update page: */
-    m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update"));
 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
 
     /* Language page: */