Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp	(revision 54741)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp	(revision 54742)
@@ -263,5 +263,5 @@
             /* Append our map if this medium has encryption: */
             const QString strKeyId = medium.GetProperty("CRYPT/KeyId");
-            if (!strKeyId.isNull())
+            if (!strKeyId.isEmpty())
                 encryptedPasswordIds.insert(strKeyId, medium.GetId());
         }
