Changeset 70147 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 15, 2017 2:08:04 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r70139 r70147 61 61 QIManagerDialog::QIManagerDialog(QWidget *pCenterWidget) 62 62 : pCenterWidget(pCenterWidget) 63 , m_fCloseEmitted(false) 63 64 , m_pWidget(0) 64 65 , m_pWidgetMenu(0) … … 223 224 /* Ignore the event itself: */ 224 225 pEvent->ignore(); 225 /* But tell the listener to close us: */ 226 emit sigClose(); 226 /* But tell the listener to close us (once): */ 227 if (!m_fCloseEmitted) 228 { 229 m_fCloseEmitted = true; 230 emit sigClose(); 231 } 227 232 } 228 233 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.h
r70139 r70147 165 165 /** @} */ 166 166 167 168 169 /* Sets the position and size of the dialog. */167 /** @name Functions related to geometry restoration. 168 * @{ */ 169 /** Sets the position and size of the dialog. */ 170 170 void setDialogGeometry(const QRect &geometry); 171 171 /** Returns whether the window should be maximized when geometry being restored. */ 172 172 virtual bool shouldBeMaximized() const { return false; } 173 173 /** @} */ 174 174 175 175 private: … … 179 179 /** Holds the widget reference to center Host Network Manager according. */ 180 180 QWidget *pCenterWidget; 181 182 /** Holds whether the manager had emitted command to be closed. */ 183 bool m_fCloseEmitted; 181 184 /** @} */ 182 185 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r70074 r70147 453 453 /* Destroy instance if still exists: */ 454 454 if (m_pManagerVirtualMedia) 455 {456 m_pManagerVirtualMedia->close();457 455 UIMediumManagerFactory().cleanup(m_pManagerVirtualMedia); 458 }459 456 } 460 457 … … 486 483 /* Destroy instance if still exists: */ 487 484 if (m_pManagerHostNetwork) 488 {489 m_pManagerHostNetwork->close();490 485 UIHostNetworkManagerFactory().cleanup(m_pManagerHostNetwork); 491 }492 486 } 493 487
Note:
See TracChangeset
for help on using the changeset viewer.