Do not open projects in the Trash
When viewing the Trash List, do not permit projects to open if clicked on.
@@ -254,8 +254,10 @@ public class ProjectList extends Composite implements ProjectManagerEventListene
@Override
public void onClick(ClickEvent event) {
Ode ode = Ode.getInstance();
- if (ode.screensLocked()) {
- return; // i/o in progress, ignore request
+ // If the screens are locked, don't take this action. Also
+ // do not open the project if it is in the trash!
+ if (ode.screensLocked() || project.isInTrash()) {
+ return;
}
ode.openYoungAndroidProjectInDesigner(project);
}
