Changeset 72361 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 28, 2018 4:39:19 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIStarter.cpp
r72360 r72361 76 76 } 77 77 78 void UIStarter::prepare()79 {80 /* Listen for QApplication signals: */81 connect(qApp, &QGuiApplication::aboutToQuit,82 this, &UIStarter::sltDestroyUI);83 }84 85 78 void UIStarter::init() 86 79 { … … 103 96 } 104 97 105 void UIStarter::cleanup() 106 { 107 /* Destroy UI if there is still something to: */ 108 sltDestroyUI(); 98 void UIStarter::prepare() 99 { 100 /* Listen for QApplication signals: */ 101 connect(qApp, &QGuiApplication::aboutToQuit, 102 this, &UIStarter::cleanup); 109 103 } 110 104 … … 153 147 } 154 148 # if defined(VBOX_GUI_WITH_SHARED_LIBRARY) && defined(VBOX_RUNTIME_UI) 149 /* Show the error message otherwise and quit: */ 155 150 else 156 151 { 157 /* Show the error message otherwise: */158 152 msgCenter().cannotStartRuntime(); 159 153 return QApplication::quit(); … … 172 166 } 173 167 174 void UIStarter:: sltDestroyUI()168 void UIStarter::cleanup() 175 169 { 176 170 #if !defined(VBOX_GUI_WITH_SHARED_LIBRARY) || !defined(VBOX_RUNTIME_UI) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIStarter.h
r72360 r72361 33 33 virtual ~UIStarter() /* override */; 34 34 35 /** Prepares everything. */36 void prepare();37 /** Cleanups everything. */38 void cleanup();39 40 35 public: 41 36 … … 55 50 private slots: 56 51 52 /** Prepares everything. */ 53 void prepare(); 54 57 55 /** Starts corresponding part of the UI. */ 58 56 void sltStartUI(); 59 57 /** Restarts corresponding part of the UI. */ 60 58 void sltRestartUI(); 61 /** Destroys corresponding part of the UI. */ 62 void sltDestroyUI(); 59 60 /** Cleanups everything. */ 61 void cleanup(); 63 62 64 63 /** Opens URLs in Selector UI. */
Note:
See TracChangeset
for help on using the changeset viewer.