Author: jflesch
Date: 2007-05-01 20:23:04 +0000 (Tue, 01 May 2007)
New Revision: 13094
Modified:
trunk/apps/Thaw/src/thaw/plugins/Signatures.java
trunk/apps/Thaw/src/thaw/plugins/index/Index.java
Log:
Fix bug : When changing two time the setting relative to the minimum level of
trust, Thaw didn't take into consideration the second change
Modified: trunk/apps/Thaw/src/thaw/plugins/Signatures.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/Signatures.java 2007-05-01 19:57:06 UTC
(rev 13093)
+++ trunk/apps/Thaw/src/thaw/plugins/Signatures.java 2007-05-01 20:23:04 UTC
(rev 13094)
@@ -78,6 +78,8 @@
public boolean stop() {
+ core.getConfigWindow().getOkButton().removeActionListener(this);
+
core.getConfigWindow().getCancelButton().removeActionListener(this);
core.getConfigWindow().removeTab(configTab.getPanel());
used--;
Modified: trunk/apps/Thaw/src/thaw/plugins/index/Index.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Index.java 2007-05-01 19:57:06 UTC
(rev 13093)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Index.java 2007-05-01 20:23:04 UTC
(rev 13094)
@@ -1999,6 +1999,8 @@
public int getNmbComments() {
try {
+ int nmb = 0;
+
synchronized(db.dbLock) {
PreparedStatement st;
@@ -2009,9 +2011,10 @@
ResultSet set = st.executeQuery();
if (set.next())
- return set.getInt(1);
+ nmb = set.getInt(1);
- return 0;
+
+ return nmb;
}
} catch(SQLException e) {
Logger.error(this, "Error while fetching comment list :
"+e.toString());