]> git.pld-linux.org Git - packages/VirtualBox.git/blame - 16-no-update.patch
- up to 5.1.10
[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 */
d19b622b
JP
57@@ -1303,7 +1301,6 @@
58 addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowMediumManager));
59 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER
60 addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager));
61- addAction(actionPool()->action(UIActionIndex_M_Application_S_CheckForUpdates));
62 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
63 addAction(actionPool()->action(UIActionIndex_M_Application_S_ResetWarnings));
64 addAction(actionPool()->action(UIActionIndexST_M_File_S_Close));
9970fc61 65@@ -1368,9 +1365,6 @@
8c008609
JP
66 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER
67 /* 'Network Access Manager' action goes to 'File' menu: */
68 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager));
69- /* 'Check for Updates' action goes to 'File' menu: */
9970fc61
JP
70- if (gEDataManager->applicationUpdateEnabled())
71- pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_CheckForUpdates));
8c008609
JP
72 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
73 /* 'Reset Warnings' action goes 'File' menu: */
74 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_ResetWarnings));
282fa2ec
JR
75diff a/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp b/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
76--- a/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
77+++ b/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
78@@ -557,6 +557,10 @@ bool UISettingsDialogGlobal::isPageAvailable(int iPageId)
79 #endif /* !VBOX_WITH_NETFLT */
80 break;
81 }
82+ case GlobalSettingsPageType_Update:
83+ {
84+ return false;
85+ }
86 default:
87 break;
88 }
This page took 0.040746 seconds and 4 git commands to generate.