fix isSoftLocked computation
authorMichael Andres <ma@suse.de>
Thu, 5 Jul 2012 13:47:52 +0000 (15:47 +0200)
committerMichael Andres <ma@suse.de>
Thu, 5 Jul 2012 13:47:52 +0000 (15:47 +0200)
zypp/ResStatus.h

index db3e97f..0724fe3 100644 (file)
@@ -255,8 +255,8 @@ namespace zypp
     bool isUserLocked() const
     { return isLocked() && isByUser(); }
 
-    bool isSoftLocked( TransactByValue causer_r = USER ) const
-    { return isKept() && fieldValueIs<TransactByField>( causer_r ); }
+    bool isSoftLocked() const
+    { return isKept() && ( isByApplLow() || isByUser() ); }
 
     bool isKept() const
     { return fieldValueIs<TransactField>( KEEP_STATE ); }