Changeset 71371 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 16, 2018 3:53:24 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r71355 r71371 36 36 # include "VBoxFBOverlay.h" 37 37 # include "UIDesktopWidgetWatchdog.h" 38 # include "UIExtraDataManager.h" 38 39 # include "UIMessageCenter.h" 40 # include "UIModalWindowManager.h" 39 41 # include "UIPopupCenter.h" 40 # include "UIExtraDataManager.h"41 42 # include "VBoxGlobal.h" 42 43 … … 3999 4000 4000 4001 if (remind) 4001 popupCenter().remindAboutWrongColorDepth( vboxGlobal().activeMachineWindow(), size.bitsPerPixel(), 32);4002 popupCenter().remindAboutWrongColorDepth(windowManager().mainWindowShown(), size.bitsPerPixel(), 32); 4002 4003 else 4003 popupCenter().forgetAboutWrongColorDepth( vboxGlobal().activeMachineWindow());4004 popupCenter().forgetAboutWrongColorDepth(windowManager().mainWindowShown()); 4004 4005 } 4005 4006 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIModalWindowManager.cpp
r69500 r71371 21 21 22 22 /* GUI includes: */ 23 # include "VBoxGlobal.h" 24 # include "UIMachine.h" 23 25 # include "UIModalWindowManager.h" 24 26 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 27 # include "UINetworkManager.h" 25 28 # include "UINetworkManagerDialog.h" 26 # include "UINetworkManager.h"27 29 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 30 # include "UIProgressDialog.h" 28 31 # include "UISelectorWindow.h" 29 # include "UIProgressDialog.h"30 # include "VBoxGlobal.h"31 32 32 33 /* Other VBox includes: */ … … 92 93 { 93 94 /* It will be currently active machine-window if visible: */ 94 if (vboxGlobal().activeMachineWindow() && 95 vboxGlobal().activeMachineWindow()->isVisible()) 96 return vboxGlobal().activeMachineWindow(); 95 if (gpMachine && 96 gpMachine->activeWindow() && 97 gpMachine->activeWindow()->isVisible()) 98 return gpMachine->activeWindow(); 97 99 } 98 100 /* For VM selector process: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r71369 r71371 66 66 # include "UIUpdateManager.h" 67 67 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 68 # include "UIMachine.h"69 68 # include "UIConverter.h" 70 69 # include "UIMediumEnumerator.h" … … 337 336 } 338 337 #endif /* VBOX_WS_MAC */ 339 340 QWidget* VBoxGlobal::activeMachineWindow() const341 {342 if (isVMConsoleProcess() && gpMachine && gpMachine->activeWindow())343 return gpMachine->activeWindow();344 return 0;345 }346 338 347 339 /** … … 1637 1629 machine.SaveSettings(); 1638 1630 if (!machine.isOk()) 1639 msgCenter().cannotSaveMachineSettings(machine, activeMachineWindow());1631 msgCenter().cannotSaveMachineSettings(machine, windowManager().mainWindowShown()); 1640 1632 } 1641 1633 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r71369 r71371 129 129 /** Returns the thread-pool instance. */ 130 130 UIThreadPool* threadPool() const { return m_pThreadPool; } 131 132 /** Returns currently active virtual machine window. */133 QWidget* activeMachineWindow() const;134 131 135 132 bool is3DAvailableWorker() const;
Note:
See TracChangeset
for help on using the changeset viewer.