Fehler in UserListeModel.java korrigiert.
This commit is contained in:
BIN
kBorrow.png
BIN
kBorrow.png
Binary file not shown.
|
Before Width: | Height: | Size: 587 KiB After Width: | Height: | Size: 1.0 MiB |
1640
kBorrow.ucls
1640
kBorrow.ucls
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user