- Timestamp:
- Jun 18, 2010 10:51:15 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r29945 r30304 1145 1145 /* save the global settings */ 1146 1146 alock.release(); 1147 AutoWriteLock vboxLock(m->pParent COMMA_LOCKVAL_SRC_POS); 1147 1148 return rc = m->pParent->saveSettings(); 1148 1149 #else … … 1200 1201 /* save the global settings */ 1201 1202 alock.release(); 1203 AutoWriteLock vboxLock(m->pParent COMMA_LOCKVAL_SRC_POS); 1202 1204 return rc = m->pParent->saveSettings(); 1203 1205 #else … … 1763 1765 // save the global settings... yeah, on every single filter property change 1764 1766 alock.release(); 1767 AutoWriteLock vboxLock(m->pParent COMMA_LOCKVAL_SRC_POS); 1765 1768 return m->pParent->saveSettings(); 1766 1769 } -
trunk/src/VBox/Main/MachineImpl.cpp
r30298 r30304 3116 3116 alock.leave(); 3117 3117 3118 rc = medium->createDiffStorage(diff, MediumVariant_Standard, 3119 pMediumLockList, NULL /* aProgress */, 3120 true /* aWait */, &fNeedsSaveSettings); 3118 rc = medium->createDiffStorage(diff, 3119 MediumVariant_Standard, 3120 pMediumLockList, 3121 NULL /* aProgress */, 3122 true /* aWait */, 3123 &fNeedsSaveSettings); 3121 3124 3122 3125 alock.enter(); … … 4872 4875 return setError(VBOX_E_OBJECT_IN_USE, tr("CPU %lu is already attached"), aCpu); 4873 4876 4874 alock. leave();4877 alock.release(); 4875 4878 rc = onCPUChange(aCpu, false); 4876 alock. enter();4879 alock.acquire(); 4877 4880 if (FAILED(rc)) return rc; 4878 4881 … … 4883 4886 /* Save settings if online */ 4884 4887 if (Global::IsOnline(mData->mMachineState)) 4885 SaveSettings();4888 saveSettings(); 4886 4889 4887 4890 return S_OK; … … 4913 4916 return setError(E_INVALIDARG, tr("It is not possible to detach CPU 0")); 4914 4917 4915 alock. leave();4918 alock.release(); 4916 4919 rc = onCPUChange(aCpu, true); 4917 alock. enter();4920 alock.acquire(); 4918 4921 if (FAILED(rc)) return rc; 4919 4922 … … 4924 4927 /* Save settings if online */ 4925 4928 if (Global::IsOnline(mData->mMachineState)) 4926 SaveSettings();4929 saveSettings(); 4927 4930 4928 4931 return S_OK; … … 11128 11131 mData->mCurrentStateModified = TRUE; 11129 11132 stsFlags |= SaveSTS_CurStateModified; 11130 SaveSettings(); 11133 SaveSettings(); // @todo r=dj why the public method? why first SaveSettings and then saveStateSettings? 11131 11134 } 11132 11135 }
Note:
See TracChangeset
for help on using the changeset viewer.