summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmdoc.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwmdoc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmdoc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmdoc.h b/pwmanager/pwmanager/pwmdoc.h
index e419c24..09923ab 100644
--- a/pwmanager/pwmanager/pwmdoc.h
+++ b/pwmanager/pwmanager/pwmdoc.h
@@ -224,6 +224,26 @@ struct PwMDataItem
//all other field will not be checked.
return true;
}
+
+ //US ENH: this sync method actually copies all values from the parameter like the =operator
+ //does with two exceptions: listViewPos will not be changed, and the launcher only if required.
+ bool PwMDataItem::syncItem(const PwMDataItem &a, bool syncLauncher=true )
+ {
+ desc = a.desc;
+ name = a.name;
+ pw = a.pw;
+ comment = a.comment;
+ url = a.url;
+ if (syncLauncher == true)
+ launcher = a.launcher;
+ meta = a.meta;
+ binary = a.binary;
+ lockStat = a.lockStat;
+ rev = a.rev;
+
+ return true;
+ }
+
};
struct PwMCategoryItem