Author: jflesch
Date: 2007-10-28 18:45:32 +0000 (Sun, 28 Oct 2007)
New Revision: 15625
Modified:
trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
Log:
Remove an useless button in the comment tab
Modified: trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-10-28 18:44:08 UTC
(rev 15624)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-10-28 18:45:32 UTC
(rev 15625)
@@ -132,7 +132,6 @@
private CommentTab tab;
private JComboBox trust;
- private JButton changeTrust;
private JButton changeBlackListState;
@@ -194,14 +193,12 @@
trust = new JComboBox(trustLevels);
trust.setSelectedItem(author.getTrustLevelStr());
- changeTrust = new JButton(I18n.getMessage("thaw.common.apply"));
- changeTrust.addActionListener(this);
+ trust.addActionListener(this);
JPanel trustPanel = new JPanel(new BorderLayout(5, 5));
if (author.getPrivateKey() == null) {
trustPanel.add(trust, BorderLayout.CENTER);
- trustPanel.add(changeTrust, BorderLayout.EAST);
}
JPanel bottomRightPanel = new JPanel(new BorderLayout(5, 5));
@@ -299,7 +296,7 @@
}
public void actionPerformed(ActionEvent e) {
- if (e.getSource() == changeTrust) {
+ if (e.getSource() == trust) {
if (author == null)
return;
author.setTrustLevel((String)trust.getSelectedItem());