Changeset 10157
- Timestamp:
- 07/03/08 17:13:17 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/VBox/Frontends/VirtualBox4/src/QIMainDialog.cpp
r10092 r10157 52 52 bool deleteOnClose = testAttribute (Qt::WA_DeleteOnClose); 53 53 setAttribute (Qt::WA_DeleteOnClose, false); 54 bool wasShowModal = testAttribute (Qt::WA_ShowModal);55 setAttribute (Qt::WA_ShowModal, true);56 54 57 55 /* Create a local event loop */ … … 69 67 return QDialog::Rejected; 70 68 QDialog::DialogCode res = result(); 71 /* Set the old show modal attribute */72 setAttribute (Qt::WA_ShowModal, wasShowModal);73 69 /* Delete us in the case we should do so on close */ 74 70 if (deleteOnClose)

