Changeset 30525 in vbox
- Timestamp:
- Jun 30, 2010 11:17:28 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63232
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r30348 r30525 907 907 void UISession::sltCloseVirtualSession() 908 908 { 909 /* Use a single shot with timeout 0 to allow the widgets to cleanly close and test then again. 910 * If all open widgets are closed destroy ourself: */ 911 QWidget *widget = QApplication::activeModalWidget() ? 912 QApplication::activeModalWidget() : 913 QApplication::activePopupWidget() ? 914 QApplication::activePopupWidget() : 0; 915 if (widget) 916 { 917 widget->hide(); 918 QTimer::singleShot(0, this, SLOT(sltCloseVirtualSession())); 919 return; 920 } 909 921 m_pMachine->closeVirtualMachine(); 910 922 }
Note:
See TracChangeset
for help on using the changeset viewer.