Fehler in UserListeModel.java korrigiert.

This commit is contained in:
Servicepoint
2015-01-27 17:15:44 +01:00
parent ec436bbd28
commit ecc9ce656e
3 changed files with 1120 additions and 523 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

File diff suppressed because it is too large Load Diff

View File

@@ -37,7 +37,8 @@ public class UserListModel extends AbstractListModel<String> implements ComboBox
* @param object Ausgew<65>hltes Objekt aus der Liste.
*/
public void setSelectedItem(Object object) {
if(object == null || selectedItem.equals(object)) return;
if(selectedItem == null && object == null) return;
if(selectedItem != null && selectedItem.equals(object)) return;
if(object!= null && !dataContains((String)object)) return;
selectedItem = (String)object;