Changeset 29526 in vbox
- Timestamp:
- May 17, 2010 10:59:21 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 61666
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r28800 r29526 505 505 mModelessDialog = new VBoxMediaManagerDlg (0, Qt::Window); 506 506 mModelessDialog->centerAccording (aCenterWidget); 507 connect (vboxGlobal().mainWindow(), SIGNAL (closing()), mModelessDialog, SLOT (close()));508 507 mModelessDialog->setAttribute (Qt::WA_DeleteOnClose); 509 508 mModelessDialog->setup (VBoxDefs::MediumType_All, false /* aDoSelect */, aRefresh); 509 510 /* Setup 'closing' connection if main window is VBoxSelectorWnd: */ 511 if (vboxGlobal().mainWindow() && vboxGlobal().mainWindow()->inherits("VBoxSelectorWnd")) 512 connect(vboxGlobal().mainWindow(), SIGNAL(closing()), mModelessDialog, SLOT(close())); 510 513 511 514 /* listen to events that may change the media status and refresh -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r28800 r29526 49 49 id->centerAccording (pMachineWindow->machineWindow()); 50 50 // TODO_NEW_CORE: this seems not necessary, cause we set WA_DeleteOnClose. 51 connect (vboxGlobal().mainWindow(), SIGNAL (closing()), id, SLOT (close()));52 51 id->setAttribute (Qt::WA_DeleteOnClose); 53 52 mSelfArray [machine.GetName()] = id; … … 146 145 VBoxVMInformationDlg *id = new VBoxVMInformationDlg (aConsole, aSession, Qt::Window); 147 146 id->centerAccording (aConsole); 148 connect (vboxGlobal().mainWindow(), SIGNAL (closing()), id, SLOT (close()));149 147 id->setAttribute (Qt::WA_DeleteOnClose); 150 148 mSelfArray [machine.GetName()] = id; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/registration/UIRegistrationWzd.cpp
r28800 r29526 418 418 #endif /* Q_WS_MAC */ 419 419 420 /* Setup connections */ 421 connect(vboxGlobal().mainWindow(), SIGNAL(closing()), this, SLOT(reject())); 420 /* Setup 'closing' connection if main window is VBoxSelectorWnd: */ 421 if (vboxGlobal().mainWindow() && vboxGlobal().mainWindow()->inherits("VBoxSelectorWnd")) 422 connect(vboxGlobal().mainWindow(), SIGNAL(closing()), this, SLOT(reject())); 422 423 } 423 424
Note:
See TracChangeset
for help on using the changeset viewer.