From 2cafcefad4b79ff29c42f55b64738a336d5e2183 Mon Sep 17 00:00:00 2001 From: Jorge Cuadrado Date: Wed, 26 Dec 2007 18:38:05 -0500 Subject: [PATCH] Working in add project --- src/dash/network/package/addproject.cpp | 5 +++-- src/dash/network/package/updateproject.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dash/network/package/addproject.cpp b/src/dash/network/package/addproject.cpp index 0a1cb02..011ebd8 100644 --- a/src/dash/network/package/addproject.cpp +++ b/src/dash/network/package/addproject.cpp @@ -21,7 +21,7 @@ #include "addproject.h" #include - +#include namespace Dash { namespace Network { @@ -52,7 +52,7 @@ AddProject::~AddProject() delete d; } -void AddProject::addUser( const QString& login, const QString &job, const QList & permissions ) +void AddProject::addUser( const QString& login, const QString &job, const QList &permissions ) { QDomElement user = createElement("user"); user.setAttribute("login", login); @@ -69,6 +69,7 @@ void AddProject::addUser( const QString& login, const QString &job, const QList< module.setAttribute("read", (*it).read()); module.setAttribute("write", (*it).write()); permissionsE.appendChild(module); + ++it; } user.appendChild(permissionsE); diff --git a/src/dash/network/package/updateproject.cpp b/src/dash/network/package/updateproject.cpp index 2e8a633..6b068f5 100644 --- a/src/dash/network/package/updateproject.cpp +++ b/src/dash/network/package/updateproject.cpp @@ -99,6 +99,7 @@ void UpdateProject::addUser( const QString& login, const QString &job, const QLi module.setAttribute("read", (*it).read()); module.setAttribute("write", (*it).write()); permissionsE.appendChild(module); + ++it; } user.appendChild(permissionsE); -- 2.11.4.GIT