From 7907818118f4a26f0a3c1c90f6e92778c0441897 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Tue, 3 May 2016 15:18:43 +0100 Subject: [PATCH] JAL-2091 disable pagination buttons during initialisation --- src/jalview/fts/core/GFTSPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/fts/core/GFTSPanel.java b/src/jalview/fts/core/GFTSPanel.java index 1c799aa..bc68667 100644 --- a/src/jalview/fts/core/GFTSPanel.java +++ b/src/jalview/fts/core/GFTSPanel.java @@ -339,7 +339,6 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI } } }); - btn_next_page.setEnabled(false); btn_next_page.setToolTipText(MessageManager .getString("label.next_page_tooltop")); @@ -851,6 +850,10 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI // System.out.println("page limit : " + pageLimit); setPrevPageButtonEnabled(false); setNextPageButtonEnabled(false); + if (resultSetCount == 0 && pageLimit == 0) + { + return; + } if (resultSetCount >= pageLimit) { setNextPageButtonEnabled(true); -- 1.7.10.2