Revision 67bb2128
b/src/gr/grnet/pithos/web/client/commands/RestoreTrashCommand.java | ||
---|---|---|
81 | 81 |
@SuppressWarnings("unchecked") |
82 | 82 |
@Override |
83 | 83 |
public void execute() { |
84 |
app.updateFolder(((List<File>) resource).get(0).getParent(), true, null); |
|
84 |
app.updateFolder(((List<File>) resource).get(0).getParent(), true, new Command() { |
|
85 |
|
|
86 |
@Override |
|
87 |
public void execute() { |
|
88 |
app.updateFolder(app.getAccount().getPithos(), false, null); |
|
89 |
} |
|
90 |
}); |
|
85 | 91 |
} |
86 | 92 |
}); |
87 | 93 |
} |
... | ... | |
90 | 96 |
untrashFolder(toBeUnTrashed, new Command() { |
91 | 97 |
@Override |
92 | 98 |
public void execute() { |
93 |
app.updateFolder(toBeUnTrashed.getParent(), true, null); |
|
99 |
app.updateFolder(toBeUnTrashed.getParent(), true, new Command() { |
|
100 |
|
|
101 |
@Override |
|
102 |
public void execute() { |
|
103 |
app.updateFolder(app.getAccount().getPithos(), false, null); |
|
104 |
} |
|
105 |
}); |
|
94 | 106 |
} |
95 | 107 |
}); |
96 | 108 |
|
Also available in: Unified diff