|
@@ -278,7 +278,7 @@ public class ProfileManagerController implements ProfilesDialogModelListener {
|
278
|
278
|
@Override
|
279
|
279
|
public void profileSelectionChanged(final Optional<MutableProfile> profile) {
|
280
|
280
|
okButton.setEnabled(model.isSaveAllowed());
|
281
|
|
- deleteProfile.setEnabled(model.isProfileListValid());
|
|
281
|
+ deleteProfile.setEnabled(model.getSelectedProfile().isPresent());
|
282
|
282
|
if (profile.isPresent()) {
|
283
|
283
|
final int index = profilesModel.indexOf(profile.get());
|
284
|
284
|
selectionModel.setLeadSelectionIndex(index);
|