summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Table.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Table.java')
-rw-r--r--server/src/com/vaadin/ui/Table.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java
index 57f196d704..e73c6d7188 100644
--- a/server/src/com/vaadin/ui/Table.java
+++ b/server/src/com/vaadin/ui/Table.java
@@ -4427,9 +4427,12 @@ public class Table extends AbstractSelect implements Action.Container,
final Container c = getContainerDataSource();
if (c instanceof Container.Sortable) {
final int pageIndex = getCurrentPageFirstItemIndex();
+ boolean refreshingPreviouslyEnabled = disableContentRefreshing();
((Container.Sortable) c).sort(propertyId, ascending);
setCurrentPageFirstItemIndex(pageIndex);
- refreshRowCache();
+ if (refreshingPreviouslyEnabled) {
+ enableContentRefreshing(true);
+ }
} else if (c != null) {
throw new UnsupportedOperationException(