MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / OnSdevChangeMp

Method OnSdevChangeMp

Ext2Mgr/Properties.cpp:91–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void CProperties::OnSdevChangeMp()
92{
93 CMountPoints mntPoint;
94 BOOL bInited = FALSE;
95
96 if (m_cdrom) {
97 ASSERT(!bInited);
98 mntPoint.m_Cdrom = m_cdrom;
99 bInited = TRUE;
100 }
101
102 if (m_part) {
103 ASSERT(!bInited);
104 mntPoint.m_Part = m_part;
105 bInited = TRUE;
106 }
107
108 if (m_volume) {
109 ASSERT(!bInited);
110 mntPoint.m_Volume = m_volume;
111 bInited = TRUE;
112 }
113
114 if (!bInited) {
115 return;
116 }
117
118 mntPoint.m_MainDlg = GetParent();
119 mntPoint.DoModal();
120
121 if (mntPoint.m_bUpdated) {
122 CExt2MgrDlg * Parent = (CExt2MgrDlg *)GetParent();
123
124 if (mntPoint.m_Volume) {
125 Parent->UpdateVolume(mntPoint.m_Volume);
126 }
127 if (mntPoint.m_Cdrom) {
128 Parent->UpdateCdrom(mntPoint.m_Cdrom);
129 }
130 if (mntPoint.m_Part) {
131 Parent->UpdatePartition(mntPoint.m_Part);
132 }
133 }
134
135 OnOK();
136}
137
138void CProperties::OnSdevQuickMount()
139{

Callers

nothing calls this directly

Calls 3

UpdateVolumeMethod · 0.80
UpdateCdromMethod · 0.80
UpdatePartitionMethod · 0.80

Tested by

no test coverage detected