Revision a9c85e26 src/gr/grnet/pithos/web/client/GroupCreateDialog.java

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
}

Also available in: Unified diff