Changeset 107475 in vbox
- Timestamp:
- Jan 8, 2025 4:54:47 AM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 166533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r106061 r107475 377 377 bool fSuccess = true; 378 378 /* Save USB settings from cache: */ 379 if ( fSuccess &&isMachineInValidMode() && m_pCache->wasChanged())379 if (/*fSuccess &&*/ isMachineInValidMode() && m_pCache->wasChanged()) 380 380 { 381 381 /* Get new USB data from cache: */ … … 383 383 384 384 /* Save USB data: */ 385 if ( fSuccess &&isMachineOffline())385 if (/*fSuccess &&*/ isMachineOffline()) 386 386 { 387 387 /* Remove USB controllers: */ 388 388 if (!newUsbData.m_fUSBEnabled) 389 389 fSuccess = removeUSBControllers(); 390 390 /* Create/update USB controllers: */ 391 391 else 392 393 /* Create/update USB controllers: */394 if (newUsbData.m_fUSBEnabled)395 392 fSuccess = createUSBControllers(newUsbData.m_enmUSBControllerType); 396 393 } … … 416 413 417 414 /* Remove filter marked for 'remove' or 'update': */ 418 if (fSuccess && (filterCache.wasRemoved() || filterCache.wasUpdated())) 419 { 415 if (/*fSuccess &&*/ (filterCache.wasRemoved() || filterCache.wasUpdated())) 420 416 fSuccess = removeUSBFilter(comFiltersObject, iOperationPosition); 421 if (fSuccess && filterCache.wasRemoved()) 422 --iOperationPosition; 423 } 417 418 /* Decrease operation position for removed filter: */ 419 if (fSuccess && filterCache.wasRemoved()) 420 --iOperationPosition; 424 421 425 422 /* Create filter marked for 'create' or 'update': */ … … 460 457 /* Get controller type for further activities: */ 461 458 KUSBControllerType enmType = KUSBControllerType_Null; 462 if (fSuccess)459 // if (fSuccess) 463 460 { 464 461 enmType = comController.GetType(); … … 483 480 484 481 /* Remove controller: */ 485 if (fSuccess)482 // if (fSuccess) 486 483 { 487 484 m_machine.RemoveUSBController(comController.GetName()); … … 565 562 if (fSuccess) 566 563 { 567 if ( fSuccess &&!cOhciCtls)564 if (/*fSuccess &&*/ !cOhciCtls) 568 565 { 569 566 m_machine.AddUSBController("OHCI", KUSBControllerType_OHCI); … … 649 646 { 650 647 /* Save whether filter is active: */ 651 if (fSuccess)648 // if (fSuccess) 652 649 { 653 650 comFilter.SetActive(filterData.m_guiData.m_fActive);
Note:
See TracChangeset
for help on using the changeset viewer.