summaryrefslogtreecommitdiff
path: root/member.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'member.cxx')
-rw-r--r--member.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/member.cxx b/member.cxx
index aa0c66d..ff5ee26 100644
--- a/member.cxx
+++ b/member.cxx
@@ -7,7 +7,7 @@ namespace QInterchange {
static Member* member;
static char *unCopy, *pwCopy, *vCopy, *fpCopy;
- Member::Member(QObject* parent) :
+ Member::Member(interchange_member* data, QObject* parent) :
QObject{parent},
m_userName{""},
m_userNick{""},
@@ -30,6 +30,7 @@ namespace QInterchange {
m_email{""},
m_data{nullptr}
{
+ if (data) setData(data);
member = this;
}