cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp
changeset 59 2709c04a4af5
parent 56 dd6aaa97e7b1
child 61 8b0c979bbe8c
--- a/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp	Mon Aug 23 13:40:12 2010 +0300
+++ b/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp	Fri Sep 03 09:38:26 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;
         }