Revision a9c85e26

b/src/gr/grnet/pithos/web/client/GroupCreateDialog.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import gr.grnet.pithos.web.client.commands.AddUserCommand;
37 38
import gr.grnet.pithos.web.client.foldertree.Folder;
39
import gr.grnet.pithos.web.client.grouptree.Group;
38 40

  
39 41
import com.google.gwt.dom.client.NativeEvent;
40 42
import com.google.gwt.event.dom.client.ClickEvent;
......
180 182
		String name = groupName.getText().trim();
181 183
		if (name.length() == 0)
182 184
			return;
183
		app.addGroup(name);
185
		Group group = app.addGroup(name);
186
		
187
		new AddUserCommand(app, null, group).execute();
184 188
	}
185 189
}
b/src/gr/grnet/pithos/web/client/Pithos.java
1058 1058
		groupTreeView.updateGroupNode(null);
1059 1059
	}
1060 1060

  
1061
	public void addGroup(String groupname) {
1061
	public Group addGroup(String groupname) {
1062 1062
		Group newGroup = new Group(groupname);
1063 1063
		account.addGroup(newGroup);
1064 1064
		groupTreeView.updateGroupNode(null);
1065
		return newGroup;
1065 1066
	}
1066 1067

  
1067 1068
	public void removeGroup(Group group) {

Also available in: Unified diff