git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5585b4b
)
JAL-2091 disable pagination buttons during initialisation
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Tue, 3 May 2016 14:18:43 +0000
(15:18 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Tue, 3 May 2016 14:18:43 +0000
(15:18 +0100)
src/jalview/fts/core/GFTSPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/fts/core/GFTSPanel.java
b/src/jalview/fts/core/GFTSPanel.java
index
1c799aa
..
bc68667
100644
(file)
--- 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);