Francesco Mangiacrapa 2013-10-22 14:43:04 +00:00
parent 7dbea45fcb
commit 8dad646b8c
1 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,6 @@ public class AppController implements SubscriberInterface {
private String selectedSmartFolderCategory;
public AppController(AppControllerExplorer appControllerExplorer) {
this.appContrExplorer = appControllerExplorer;
this.appContrExplorer.subscribe(this, new EventsTypeEnum[] {
@ -267,7 +266,9 @@ public class AppController implements SubscriberInterface {
@Override
public void onGetLink(GetShareLinkEvent getLinkEvent) {
AppControllerExplorer.getEventBus().fireEvent(new GetShareLinkEvent(getLinkEvent.getSourceFile()));
FileModel getLinkFile = getLinkEvent.getSourceFile()!=null?getLinkEvent.getSourceFile():wsPortlet.getToolBarPath().getLastParent();
AppControllerExplorer.getEventBus().fireEvent(new GetShareLinkEvent(getLinkFile));
}
});