Use display name to add a user to a group
[pithos-web-client] / src / gr / grnet / pithos / web / client / commands / UploadFileCommand.java
index 112474d..a97f161 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2012 GRNET S.A. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or
  * without modification, are permitted provided that the following
@@ -38,7 +38,6 @@ import gr.grnet.pithos.web.client.FileUploadDialog;
 import gr.grnet.pithos.web.client.Pithos;
 import gr.grnet.pithos.web.client.foldertree.Folder;
 
-import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.Command;
 import com.google.gwt.user.client.ui.PopupPanel;
 
@@ -68,7 +67,8 @@ public class UploadFileCommand implements Command {
                if(containerPanel!=null)
                        containerPanel.hide();
                
-        FileUploadDialog dlg = new FileUploadDialog(app, folder);
+        FileUploadDialog dlg = app.getFileUploadDialog();
+        dlg.setFolder(folder);
                dlg.center();
        }
 }