Message when no results (fix #94)

This commit is contained in:
Anton Tananaev 2013-08-03 19:46:13 +12:00
parent ec90f70efd
commit 7a806c44cb

View File

@ -74,7 +74,11 @@ public class ArchiveController implements ContentController, ArchiveView.Archive
@Override
public void onSuccess(List<Position> result) {
positionStore.clear();
positionStore.addAll(result);
if (result.isEmpty()) {
new AlertMessageBox("Error", "No results found for selected period").show();
} else {
positionStore.addAll(result);
}
}
});
} else {