Changeset 55557 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 30, 2015 2:41:21 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r55545 r55557 91 91 m_strHardDiskFormat = other.hardDiskFormat(); 92 92 m_strStorageDetails = other.storageDetails(); 93 m_strEncryptionPasswordID = other.encryptionPasswordID(); 93 94 94 95 m_strUsage = other.usage(); … … 155 156 m_strHardDiskFormat = QString(); 156 157 m_strStorageDetails = QString(); 158 m_strEncryptionPasswordID = QString(); 157 159 158 160 /* Reset data parameters: */ … … 245 247 } 246 248 247 /* Check whether this medium is encrypted: */249 /* Refresh encryption attributes: */ 248 250 if (m_strRootId != m_strId) 251 { 252 m_strEncryptionPasswordID = root().encryptionPasswordID(); 249 253 m_fEncrypted = root().isEncrypted(); 254 } 250 255 else 251 256 { 252 257 QString strCipher; 253 258 CMedium medium(m_medium); 254 medium.GetEncryptionSettings(strCipher); 255 m_fEncrypted = medium.isOk(); 259 const QString strEncryptionPasswordID = medium.GetEncryptionSettings(strCipher); 260 if (medium.isOk()) 261 { 262 m_strEncryptionPasswordID = strEncryptionPasswordID; 263 m_fEncrypted = true; 264 } 256 265 } 257 266 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
r55545 r55557 193 193 /** Returns the hard drive medium storage details. */ 194 194 QString storageDetails() const { return m_strStorageDetails; } 195 /** Returns the hard drive medium encryption password ID. */ 196 QString encryptionPasswordID() const { return m_strEncryptionPasswordID; } 195 197 196 198 /** Returns the medium usage data. … … 336 338 /** Holds the hard drive medium storage details. */ 337 339 QString m_strStorageDetails; 340 /** Holds the hard drive medium encryption password ID. */ 341 QString m_strEncryptionPasswordID; 338 342 339 343 /** Holds the medium usage. */
Note:
See TracChangeset
for help on using the changeset viewer.