cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp
changeset 64 84c6623982f6
parent 60 a9c709db68db
child 66 ed07dcc72692
--- a/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp	Thu Sep 02 20:50:05 2010 +0300
+++ b/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp	Fri Sep 17 08:32:43 2010 +0300
@@ -187,10 +187,10 @@
         if (mDestinationId != 0) {
             CmDestinationShim *destination = mCmm->destination(mDestinationId);
             CMManagerShim::CmmProtectionLevel level = destination->protectionLevel();
-            if (level == CMManagerShim::ProtLevel3) {
+            if (level == CMManagerShim::ProtLevel1) {
+                apProtected = true;
+            } else {
                 apProtected = apList[i]->getBoolAttribute(CMManagerShim::CmProtected);
-            } else if (level == CMManagerShim::ProtLevel1) {
-                apProtected = true;
             }
             delete destination;
         }