1
0
forked from pool/virtualbox
virtualbox/vbox-disable-updates.diff
2012-10-02 14:03:09 +00:00

72 lines
3.4 KiB
Diff

Index: src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
===================================================================
--- src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp.orig
+++ src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
@@ -61,11 +61,11 @@ void UIGlobalSettingsUpdate::loadToCache
/* Load data to corresponding widgets from cache,
* this task SHOULD be performed in GUI thread only: */
void UIGlobalSettingsUpdate::getFromCache()
{
/* Apply internal variables data to QWidget(s): */
- m_pEnableUpdateCheckbox->setChecked(m_cache.m_fCheckEnabled);
+ m_pEnableUpdateCheckbox->setChecked(false);
if (m_pEnableUpdateCheckbox->isChecked())
{
m_pUpdatePeriodCombo->setCurrentIndex(m_cache.m_periodIndex);
if (m_cache.m_branchIndex == VBoxUpdateData::BranchWithBetas)
m_pUpdateFilterBetasRadio->setChecked(true);
Index: src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h
===================================================================
--- src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h.orig
+++ src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h
@@ -37,11 +37,10 @@ public:
enum GLSettingsPage
{
GLSettingsPage_General = 0,
GLSettingsPage_Input,
- GLSettingsPage_Update,
GLSettingsPage_Language,
GLSettingsPage_Display,
GLSettingsPage_USB,
GLSettingsPage_Network,
GLSettingsPage_Extension,
Index: src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
===================================================================
--- src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp.orig
+++ src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
@@ -327,19 +327,10 @@ UISettingsDialogGlobal::UISettingsDialog
addItem(":/hostkey_32px.png", ":/hostkey_disabled_32px.png",
":/hostkey_16px.png", ":/hostkey_disabled_16px.png",
iPageIndex, "#input", pSettingsPage);
break;
}
- /* Update page: */
- case GLSettingsPage_Update:
- {
- pSettingsPage = new UIGlobalSettingsUpdate;
- addItem(":/refresh_32px.png", ":/refresh_disabled_32px.png",
- ":/refresh_16px.png", ":/refresh_disabled_16px.png",
- iPageIndex, "#update", pSettingsPage);
- break;
- }
/* Language page: */
case GLSettingsPage_Language:
{
pSettingsPage = new UIGlobalSettingsLanguage;
addItem(":/site_32px.png", ":/site_disabled_32px.png",
@@ -474,13 +465,10 @@ void UISettingsDialogGlobal::retranslate
m_pSelector->setItemText(GLSettingsPage_General, tr("General"));
/* Input page: */
m_pSelector->setItemText(GLSettingsPage_Input, tr("Input"));
- /* Update page: */
- m_pSelector->setItemText(GLSettingsPage_Update, tr("Update"));
-
/* Language page: */
m_pSelector->setItemText(GLSettingsPage_Language, tr("Language"));
/* Display page: */
m_pSelector->setItemText(GLSettingsPage_Display, tr("Display"));