Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 67e3628

Browse files
committed
Re-Fix issue #34 (macOS only): force refresh the table after sorting
The fix for issue #36 (automatic tree expansion on Linux) disable the fix for issue #34 and causes the issue #34 to reappear again.
1 parent 1aac9e3 commit 67e3628

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

edu.rice.cs.hpcviewer.ui/src/edu/rice/cs/hpcviewer/ui/internal/ScopeTreeViewer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,10 @@ public void initSelection() {
312312

313313
// issue #36
314314
// Linux/GTK only: if a user already select an item, we shouldn't expand it
315-
if (tree.getSelectionCount() > 0) {
315+
//
316+
// issue #34 (macOS only): we need to refresh and expand the table after sorting
317+
// otherwise the tree items are not visible
318+
if (!OSValidator.isMac() && tree.getSelectionCount() > 0) {
316319
return;
317320
}
318321
expandToLevel(2);

0 commit comments

Comments
 (0)