VirtualBox

Changeset 26200 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 3, 2010 3:17:42 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57222
Message:

Main: fix wrong assertions introduced by yesterday's settings changes

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r26193 r26200  
    29752975            medium->attachTo(mData->mUuid);
    29762976        pAttach->updateMedium(medium, false /* aImplicit */);
     2977        setModified(IsModified_Storage);
    29772978    }
    29782979
  • trunk/src/VBox/Main/MediumAttachmentImpl.cpp

    r26171 r26200  
    358358}
    359359
    360 /** Must be called from under this object's AND the machine's write lock. */
     360/** Must be called from under this object's write lock. */
    361361void MediumAttachment::updateMedium(const ComObjPtr<Medium> &aMedium, bool aImplicit)
    362362{
    363     Assert(m->pMachine->isWriteLockOnCurrentThread());
    364363    Assert(isWriteLockOnCurrentThread());
    365364
     
    367366    m->bd->pMedium = aMedium;
    368367    m->bd->fImplicit = aImplicit;
    369 
    370     m->pMachine->setModified(Machine::IsModified_Storage);
    371 }
    372 
    373 /** Must be called from under this object's AND the machine's write lock. */
     368}
     369
     370/** Must be called from under this object's write lock. */
    374371void MediumAttachment::updatePassthrough(bool aPassthrough)
    375372{
    376     Assert(m->pMachine->isWriteLockOnCurrentThread());
    377373    Assert(isWriteLockOnCurrentThread());
    378374
    379375    m->bd.backup();
    380376    m->bd->fPassthrough = aPassthrough;
    381 
    382     m->pMachine->setModified(Machine::IsModified_Storage);
    383 }
    384 
     377}
     378
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette