[jsword-svn] r1276 - trunk/jsword/src/main/java/org/crosswire/jsword/book/basic

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Thu Apr 19 12:31:43 MST 2007


Author: dmsmith
Date: 2007-04-19 12:31:43 -0700 (Thu, 19 Apr 2007)
New Revision: 1276

Modified:
   trunk/jsword/src/main/java/org/crosswire/jsword/book/basic/AbstractBook.java
Log:
Fixed a listener bug in AbstractBook.

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/basic/AbstractBook.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/basic/AbstractBook.java	2007-04-19 18:06:11 UTC (rev 1275)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/basic/AbstractBook.java	2007-04-19 19:31:43 UTC (rev 1276)
@@ -21,7 +21,6 @@
  */
 package org.crosswire.jsword.book.basic;
 
-import java.beans.PropertyChangeListener;
 import java.util.Map;
 
 import javax.swing.event.EventListenerList;
@@ -340,7 +339,7 @@
             Object[] listenerList = listeners.getListenerList();
             for (int i = 0; i <= listenerList.length - 2; i += 2)
             {
-                if (listenerList[i] == PropertyChangeListener.class)
+                if (listenerList[i] == IndexStatusListener.class)
                 {
                     IndexStatusEvent ev = new IndexStatusEvent(this, newStatus);
                     IndexStatusListener li = (IndexStatusListener) listenerList[i + 1];




More information about the jsword-svn mailing list