Changeset 11666 in vbox
- Timestamp:
- Aug 26, 2008 3:10:34 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDiskImageManagerDlg.h
r11344 r11666 48 48 49 49 void setup (int aType, bool aDoSelect, const QUuid &aTargetVMId = QUuid(), 50 bool aRefresh = true, CMachine aMachine = 0,50 bool aRefresh = true, CMachine aMachine = CMachine(), 51 51 const QUuid &aHdId = QUuid(), 52 52 const QUuid &aCdId = QUuid(), 53 53 const QUuid &aFdId = QUuid()); 54 54 55 static void showModeless ( bool aRefresh = true);55 static void showModeless (QWidget *aParent = NULL, bool aRefresh = true); 56 56 57 57 QUuid selectedUuid() const; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDiskImageManagerDlg.cpp
r11529 r11666 407 407 408 408 void VBoxDiskImageManagerDlg::setup (int aType, bool aDoSelect, 409 const QUuid &aTargetVMId /* = 0*/,409 const QUuid &aTargetVMId /* = QUuid() */, 410 410 bool aRefresh /* = true */, 411 CMachine aMachine /* = 0*/,411 CMachine aMachine /* = CMachine() */, 412 412 const QUuid &aHdId, 413 413 const QUuid &aCdId, … … 490 490 491 491 /* static */ 492 void VBoxDiskImageManagerDlg::showModeless ( bool aRefresh /* = true */)492 void VBoxDiskImageManagerDlg::showModeless (QWidget *aParent /* = NULL */, bool aRefresh /* = true */) 493 493 { 494 494 if (!mModelessDialog) 495 495 { 496 496 mModelessDialog = 497 new VBoxDiskImageManagerDlg ( 0, Qt::Window);497 new VBoxDiskImageManagerDlg (aParent, Qt::Window); 498 498 mModelessDialog->setAttribute (Qt::WA_DeleteOnClose); 499 499 mModelessDialog->setup (VBoxDefs::HD | VBoxDefs::CD | VBoxDefs::FD, 500 false, 0, aRefresh);500 false, QUuid(), aRefresh); 501 501 502 502 /* listen to events that may change the media status and refresh … … 1448 1448 1449 1449 bool notInEnum = !vboxGlobal().isMediaEnumerationStarted(); 1450 /* If we are currently enumerating the media go out of here. We are coming 1451 * back here from the finished signal. */ 1452 if (!notInEnum) 1453 return; 1450 1454 bool modifyEnabled = notInEnum && 1451 1455 item && item->usage().isNull() && -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp
r11613 r11666 745 745 void VBoxSelectorWnd::fileDiskMgr() 746 746 { 747 VBoxDiskImageManagerDlg::showModeless ();747 VBoxDiskImageManagerDlg::showModeless (this); 748 748 } 749 749 … … 1461 1461 /* Show the VDM dialog but don't refresh once more after a 1462 1462 * just-finished refresh */ 1463 /* Todo: Changed this to true to temporary fix #3000 comment 4. 1464 * We have to find the real trouble here. */ 1465 // VBoxDiskImageManagerDlg::showModeless (false /* aRefresh */); 1466 VBoxDiskImageManagerDlg::showModeless (true /* aRefresh */); 1463 VBoxDiskImageManagerDlg::showModeless (this, false /* aRefresh */); 1467 1464 } 1468 1465 }
Note:
See TracChangeset
for help on using the changeset viewer.