]> git.pld-linux.org Git - packages/VirtualBox.git/blame - 16-no-update.patch
up to 5.0.6
[packages/VirtualBox.git] / 16-no-update.patch
CommitLineData
acf12a87
AM
1Description: Disable "Check for Updates" action.
2Bug-Ubuntu: https://bugs.launchpad.net/bugs/272212
cc827380 3Author: Daniel Hahler <ubuntu@thequod.de>, Felix Geyer <fgeyer@debian.org>
acf12a87 4
cc827380
JR
5diff a/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp b/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
6--- a/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
7+++ b/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
282fa2ec 8@@ -474,6 +474,8 @@ void UIUpdateManager::shutdown()
cc827380
JR
9
10 void UIUpdateManager::sltForceCheck()
11 {
12+ return;
13+
14 /* Force call for new version check: */
15 sltCheckIfUpdateIsNecessary(true /* force call */);
16 }
8c008609
JP
17--- VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/globals/UIActionPool.cpp.orig 2015-07-09 20:11:53.129742315 +0200
18+++ VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/globals/UIActionPool.cpp 2015-07-09 20:12:02.136424394 +0200
19@@ -991,7 +991,6 @@
20 m_pool[UIActionIndex_M_Application_S_Preferences] = new UIActionSimplePreferences(this);
0190f7b9 21 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
8c008609
JP
22 m_pool[UIActionIndex_M_Application_S_NetworkAccessManager] = new UIActionSimpleNetworkAccessManager(this);
23- m_pool[UIActionIndex_M_Application_S_CheckForUpdates] = new UIActionSimpleCheckForUpdates(this);
0190f7b9 24 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
8c008609
JP
25 m_pool[UIActionIndex_M_Application_S_ResetWarnings] = new UIActionSimpleResetWarnings(this);
26 m_pool[UIActionIndex_M_Application_S_Close] = new UIActionSimplePerformClose(this);
27@@ -1033,8 +1033,6 @@
0190f7b9 28 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
8c008609
JP
29 connect(action(UIActionIndex_M_Application_S_NetworkAccessManager), SIGNAL(triggered()),
30 gNetworkManager, SLOT(show()), Qt::UniqueConnection);
31- connect(action(UIActionIndex_M_Application_S_CheckForUpdates), SIGNAL(triggered()),
32- gUpdateManager, SLOT(sltForceCheck()), Qt::UniqueConnection);
0190f7b9 33 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
8c008609
JP
34 connect(action(UIActionIndex_M_Application_S_ResetWarnings), SIGNAL(triggered()),
35 &msgCenter(), SLOT(sltResetSuppressedMessages()), Qt::UniqueConnection);
36--- VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/globals/UIActionPool.h.orig 2015-07-09 20:13:36.439757556 +0200
37+++ VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/globals/UIActionPool.h 2015-07-09 20:13:40.446396985 +0200
38@@ -62,7 +62,6 @@
39 UIActionIndex_M_Application_S_Preferences,
0190f7b9 40 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
8c008609
JP
41 UIActionIndex_M_Application_S_NetworkAccessManager,
42- UIActionIndex_M_Application_S_CheckForUpdates,
0190f7b9 43 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
8c008609
JP
44 UIActionIndex_M_Application_S_ResetWarnings,
45 UIActionIndex_M_Application_S_Close,
46--- VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/selector/UISelectorWindow.cpp.orig 2015-07-09 20:09:22.239478146 +0200
47+++ VirtualBox-5.0.0/src/VBox/./Frontends/VirtualBox/src/selector/UISelectorWindow.cpp 2015-07-09 20:17:20.635207663 +0200
48@@ -1211,8 +1211,6 @@
49 /* 'About' action goes to Application menu: */
50 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_About));
51 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER
52- /* 'Check for Updates' action goes to Application menu: */
53- pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_CheckForUpdates));
54 /* 'Network Access Manager' action goes to Application menu: */
55 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager));
56 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
57@@ -1255,8 +1253,6 @@
58 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER
59 /* 'Network Access Manager' action goes to 'File' menu: */
60 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager));
61- /* 'Check for Updates' action goes to 'File' menu: */
62- pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_CheckForUpdates));
63 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
64 /* 'Reset Warnings' action goes 'File' menu: */
65 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_ResetWarnings));
282fa2ec
JR
66diff a/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp b/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
67--- a/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
68+++ b/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
69@@ -557,6 +557,10 @@ bool UISettingsDialogGlobal::isPageAvailable(int iPageId)
70 #endif /* !VBOX_WITH_NETFLT */
71 break;
72 }
73+ case GlobalSettingsPageType_Update:
74+ {
75+ return false;
76+ }
77 default:
78 break;
79 }
This page took 0.03675 seconds and 4 git commands to generate.