From: tcofoegbu Date: Tue, 3 May 2016 14:18:43 +0000 (+0100) Subject: JAL-2091 disable pagination buttons during initialisation X-Git-Tag: Release_2_10_0~232 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7907818118f4a26f0a3c1c90f6e92778c0441897;p=jalview.git JAL-2091 disable pagination buttons during initialisation --- 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);