Index: /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp	(revision 55556)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp	(revision 55557)
@@ -91,4 +91,5 @@
     m_strHardDiskFormat = other.hardDiskFormat();
     m_strStorageDetails = other.storageDetails();
+    m_strEncryptionPasswordID = other.encryptionPasswordID();
 
     m_strUsage = other.usage();
@@ -155,4 +156,5 @@
     m_strHardDiskFormat = QString();
     m_strStorageDetails = QString();
+    m_strEncryptionPasswordID = QString();
 
     /* Reset data parameters: */
@@ -245,13 +247,20 @@
                 }
 
-                /* Check whether this medium is encrypted: */
+                /* Refresh encryption attributes: */
                 if (m_strRootId != m_strId)
+                {
+                    m_strEncryptionPasswordID = root().encryptionPasswordID();
                     m_fEncrypted = root().isEncrypted();
+                }
                 else
                 {
                     QString strCipher;
                     CMedium medium(m_medium);
-                    medium.GetEncryptionSettings(strCipher);
-                    m_fEncrypted = medium.isOk();
+                    const QString strEncryptionPasswordID = medium.GetEncryptionSettings(strCipher);
+                    if (medium.isOk())
+                    {
+                        m_strEncryptionPasswordID = strEncryptionPasswordID;
+                        m_fEncrypted = true;
+                    }
                 }
             }
Index: /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h	(revision 55556)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h	(revision 55557)
@@ -193,4 +193,6 @@
     /** Returns the hard drive medium storage details. */
     QString storageDetails() const { return m_strStorageDetails; }
+    /** Returns the hard drive medium encryption password ID. */
+    QString encryptionPasswordID() const { return m_strEncryptionPasswordID; }
 
     /** Returns the medium usage data.
@@ -336,4 +338,6 @@
     /** Holds the hard drive medium storage details. */
     QString m_strStorageDetails;
+    /** Holds the hard drive medium encryption password ID. */
+    QString m_strEncryptionPasswordID;
 
     /** Holds the medium usage. */
